是QAbstractItemModel的dataChanged信号,也是为其子级的更改而激发的
Is the dataChanged signal of a QAbstractItemModel also fired for changes of its children?
例如,如果我调整QAbstractItemModel
中的子级的大小,那么只为父索引发出dataChanged
信号就足够了吗?还是应该为每个子级发出信号?
在我的测试中,仅仅为父索引发出dataChanged信号是不够的。
相关文章:
- QAbstractTableModel,并为单行发出dataChanged
- QTableWidget dataChanged SIGNAL
- 如果由同一应用程序触发,则丢弃QClipboard :: DataChanged()信号
- Datachanged信号与ComboboxDelegate不起作用
- 在Qt中使用dataChanged()和QTreeView时,"右下"是什么意思?
- QSortFilterProxyModel没有中继dataChanged信号
- 是QAbstractItemModel的dataChanged信号,也是为其子级的更改而激发的
- QAbstractItemModel:为什么在模型中插入大量项目时发出dataChanged和insert行信号如此缓慢
- QML文本元素上的dataChanged
- C++/QML:ListView未根据来自QAbstractListModel的dataChanged信号进行更新