selection bug in frozenColumn example
-
I need to implement frozenColumn in my QTableView. And i noticed the bug as a result of following operations.
- click, for example, cell B2.
- click cell A4 in frozen column.
- hold shift and click cell D4.
Expected result is selection of A4:D4. but shown result is B2:D4.
If the selection is done with keyboard then everything works fine. I am compelled to use old Qt 5.2 so i am not sure if this bug was reported and fixed until actual version.
I hope to get help on how to fix this without updating my old 5.2 version.
-
I need to implement frozenColumn in my QTableView. And i noticed the bug as a result of following operations.
- click, for example, cell B2.
- click cell A4 in frozen column.
- hold shift and click cell D4.
Expected result is selection of A4:D4. but shown result is B2:D4.
If the selection is done with keyboard then everything works fine. I am compelled to use old Qt 5.2 so i am not sure if this bug was reported and fixed until actual version.
I hope to get help on how to fix this without updating my old 5.2 version.
Hi,
Even if locked to that old version, you should test on a more recent to see if something has changed. Then it might be a question of back porting the fix or you may have to reimplement some event handling to make it work the way you want it.
-
Hi,
Even if locked to that old version, you should test on a more recent to see if something has changed. Then it might be a question of back porting the fix or you may have to reimplement some event handling to make it work the way you want it.
@SGaist I have checked the bug with frozenColumn example on Qt 6.4.3.
It is still impossible to select an extended range, that includes cells from two QTableView, with mouse clicks. I suspect that this is a bug that cannon be fixed with additional code from me. Because the addresses of currently selected cells in each table view are the same (as it should be). And also the selection with keyboard is okay. Somehow mouse clicks select extended range just inside single table view (though the table views have the same selection model).
Can someone give me an advise about possible workaround for this selection bug?