【发布时间】:2011-07-15 14:31:58
【问题描述】:
我想创建一个列表,该列表中的每一行包含:
LineNo | Edit Model | Model Select | Log enabl | freq | selection |
1 | QPushButton | QComboBox | QCheckBox | QLineEdit | QLineEdit |
2 | QPushButton | QComboBox | QCheckBox | QLineEdit | QLineEdit |
3 | QPushButton | QComboBox | QCheckBox | QLineEdit | QLineEdit |
| | | | | | |
n | QPushButton | QComboBox | QCheckBox | QLineEdit | QLineEdit |
这个列表是动态的,我总共有 36 个模型,但根据已做出的选择,应该只显示其中的一部分。用户应该能够后悔之前的任何选择并重新绘制此列表。
我一直在查看 QListView、QTableWidget、Delegates,但我似乎找不到任何关于如何将 QPushButton 实现到 QListView 或 QTableWidget 的示例或教程。查看 QItemDeligate QPushButton 的文档不在接受的类型之列。
【问题讨论】:
标签: c++ qt user-interface qt4