Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. selection bug in frozenColumn example

selection bug in frozenColumn example

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 381 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Alex SUNPPA Offline
    Alex SUNPPA Offline
    Alex SUNPP
    wrote on last edited by Alex SUNPP
    #1

    I need to implement frozenColumn in my QTableView. And i noticed the bug as a result of following operations.

    1. click, for example, cell B2.
    2. click cell A4 in frozen column.
    3. 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.
    SGaistS 1 Reply Last reply
    0
    • Alex SUNPPA Alex SUNPP

      I need to implement frozenColumn in my QTableView. And i noticed the bug as a result of following operations.

      1. click, for example, cell B2.
      2. click cell A4 in frozen column.
      3. 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.
      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Alex SUNPPA 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        Alex SUNPPA Offline
        Alex SUNPPA Offline
        Alex SUNPP
        wrote on last edited by
        #3

        @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?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved