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

QTreeView processes mouse move events after expand/collapse

XMLWordPrintable

    • 67bbe28d67c99d99e752cd6054c9b576c7702358 985f4910249a0308b746695e64aa1a6205492421 (qt/qtbase/5.14)

      If you click to expand or collapse a tree item but do not release the mouse button, QTreeView continues to process mouse move events as if you had clicked on an item. That is particularly problematic if your widget implements drag & drop:

      • select an item
      • click to collapse another
      • move the mouse a bit before releasing the mouse button

      => QTreeView drops the selected item into the item you just collapsed.

      I am using Qt 5.5.1 at the moment, but the code in 5.8.0 seems to be the same.

        For Gerrit Dashboard: QTBUG-59067
        # Subject Branch Project Status CR V

            andysh Andy Shaw
            glevner Geoff Levner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes