Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95436

Incorrect mouse selection in QTreeView with ExtendedSelection and stretchLastSection == false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15, 6.1.2, 6.2.0 Beta2
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Labels:
      None

      Description

      If a content of a tree view doesn't occupy the whole viewport area (e.g. when stretchLastSection == false), then mouse selection that goes outside of the content produces incorrect results:

      1) if the selection is started outside of the content, then all items from the top of the selection to the bottom of the content become selected

      2) if the selection is started inside of the content, then it stops changing when the mouse goes outside of the content

        Attachments

        1. incorrect_selection1.png
          42 kB
          Alexander Volkov
        2. incorrect_selection2.png
          45 kB
          Alexander Volkov
        3. qtbug95436.zip
          3 kB
          Alexander Volkov
        For Gerrit Dashboard: QTBUG-95436
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            avolkov Alexander Volkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There is 1 open Gerrit change