摘要: 1. 设置段落对齐 textEdit->setAlignment(Qt::AlignLeft); //左对齐 textEdit->setAlignment(Qt::AlignRight); //右对齐 textEdit->setAlignment(Qt::AlignCenter); //居中 tex 阅读全文
posted @ 2022-02-25 16:33 不再低调 阅读(1894) 评论(0) 推荐(0) 编辑
摘要: QTextEdit由QTextDocument作为载体,光标QTextCursor类提供了对QTextDocument文档的修改接口,所有对文档格式的修改都与光标有关 1. 设置字体 QTextCharFormat textCharFormat; textCharFormat.setFontFami 阅读全文
posted @ 2022-02-25 16:33 不再低调 阅读(545) 评论(0) 推荐(0) 编辑