junwu
junwu
理論上 QTreeWidgetItem::setText(int column, const QString &text) 之後應該不需要刷新。 可以試試 QTreeWidget的update函數 ``` void update(const QModelIndex &index) Updates the area occupied by the given index. ```
很可能是你的顯卡問題,你在什麽系統上做應用?
https://youtu.be/c8ZZ6h8rbtE ` ui->treeWidget->topLevelItem(0)->child(0)->setText(0, ui->lineEdit->text()); ` [Example](https://github.com/shelllet/cpp-exmaple/files/5089920/SetText.zip)
What is your ask?
LineEdit 添加验证器,或者inputMask是比较好的方式
 你可以尝试重绘其它几种状态,比如上面圈起来的
painter 指针 和 palette 这两个都可以指定颜色
Qt 翻译相关的资料网上很多,建议你先看一下资料,提出具体的问题所在,然后大家 包括我都会给你建议的。