qt treeview 多层分级
时间: 2023-08-27 10:06:23 浏览: 213
关于TreeView的简单使用(Qt6.4.1)测试源码
5星 · 资源好评率100%
在Qt中,我们可以使用QStandardItemModel来构建一个多层分级的TreeView。通过创建QStandardItem对象并将其添加到QStandardItemModel中,我们可以实现树状结构的展示。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Qt中的TreeView多级下拉框 代码实例?](https://blog.csdn.net/m0_73443478/article/details/130270057)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [QTreeView实现层级选中联动效果](https://blog.csdn.net/wwb123321/article/details/129566646)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文