QTableView QListview setselectionModel()
-
For innterview in qt-demo, QTableView, QTreeView and QListView share the same model. So that if I set setSelectionModel() correctly, then when I select (0,0) cell in tablevew, then 0th item in list is selected. But when I select (0,1) cell in table, no item in list is selected because all items in listview have the column number 0. I did manually by connecting selectionchanged signal in tableview to the slot on listview to select (row_corresponding, 0). It works but it is quite slow for more than 10000 rows.
Is there any option to make it possible so that when I select (0,1) cell in tableview, (0,0) cell in listview is selected automatically? -
Hi,
Are you using single element selection or would row selection be valid ?
-
Are you doing any editing with that QListView ?
-
Out of curiosity, why do you need all these view separately ?