QTableView setSpan + moveSection causes selection mismatch
-
I encountered an issue with selection positioning in QTableView after applying cell spans and column reordering. I've created a bug report: https://bugreports.qt.io/browse/QTBUG-138513
Does anyone have an idea how to fix it? -
You wanted a suggestion on how to fix it. My suggestion is - don't move columns around. You can move the data underneath with a QSortFilterProxyModel.
-
Spanning and moving columns around normally does not work well. I would disable moving columns. Otherwise I don't see how it should work when you e.g. span column 1+2 and then move column 1 away.
-
Spanning and moving columns around normally does not work well. I would disable moving columns. Otherwise I don't see how it should work when you e.g. span column 1+2 and then move column 1 away.
@Christian-Ehrlicher I indicated in the report that rows within one column are being merged, and another column is being moved. Nevertheless, merging has an effect on the cells (clicks and selections) in the columns following the moved one.
-
You wanted a suggestion on how to fix it. My suggestion is - don't move columns around. You can move the data underneath with a QSortFilterProxyModel.
-
You wanted a suggestion on how to fix it. My suggestion is - don't move columns around. You can move the data underneath with a QSortFilterProxyModel.
@Christian-Ehrlicher I think you're right. Although there were no errors in this situation in Qt version 5.11.2. Thanks!
-
-
Please write this information into the bug report and notify me
-
Please write this information into the bug report and notify me
@Christian-Ehrlicher Added a link and a quote in the commentary to the report