我想为在QLineEdit中编写的文本添加一些语法高亮,但它不支持富文本格式,我不能将QlineEdit更改为其他内容,所以我应该找到如何设置此小部件中文本的颜色.
有没有办法做到这一点?
c++ user-interface qt
c++ ×1
qt ×1
user-interface ×1