Nar*_*yan 2 c++ qt selection qtableview qtablewidget
我希望我的表格不可选择,以便只能选择复选框或单选按钮,而不能选择单元格本身。我现在有:
我怎样才能解决这个问题?
QTableWidget 的解决方案也可以提供帮助。
QTableView *test = new QTableView();
test->setSelectionMode(QAbstractItemView::NoSelection);
Run Code Online (Sandbox Code Playgroud)
给出想要的结果。
| 归档时间: |
|
| 查看次数: |
1129 次 |
| 最近记录: |