junwu

Results 28 comments of 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是比较好的方式

![image](https://user-images.githubusercontent.com/16729017/77880530-6cd4da00-728f-11ea-93b8-627f368a9795.png) 你可以尝试重绘其它几种状态,比如上面圈起来的

painter 指针 和 palette 这两个都可以指定颜色

Qt 翻译相关的资料网上很多,建议你先看一下资料,提出具体的问题所在,然后大家 包括我都会给你建议的。