//设置文字行间距
QTextBlockFormat blockFormat;
blockFormat.setLineHeight(10, QTextBlockFormat::LineDistanceHeight);
auto textCursor = m_contentEdit->textCursor();
textCursor.setBlockFormat(blockFormat);
m_contentEdit->setTextCursor(textCursor);
//设置文字行间距
QTextBlockFormat blockFormat;
blockFormat.setLineHeight(10, QTextBlockFormat::LineDistanceHeight);
auto textCursor = m_contentEdit->textCursor();
textCursor.setBlockFormat(blockFormat);
m_contentEdit->setTextCursor(textCursor);