QTextEdit 、QPlainTextEdit设置插入字体颜色

QTextEdit 和QPlainTextEdit自己没有提供设置插入字体的颜色的API,能够自定义一个setInsertTextColor(const QColor & c)来实现:api void XXXX::setInsertTextColor(QColor col,BackOrFore wground) {              QTextCharFormat fmt;        
相关文章
相关标签/搜索