QTextEdit设置行高 行间距
QTextCursor textCursor = ui->textEdit->textCursor();QTextBlockFormat textBlockFormat;
textBlockFormat.setLineHeight(40, QTextBlockFormat::FixedHeight);//设置固定行高
textCursor.setBlockFormat(textBlockFormat);
ui->textEdit->setTextCursor(textCursor);
页:
[1]