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

set correct state when drag item autoScroll

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.3
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Environment:
      deepin,ubuntu
    • Platform/s:
      Linux/X11

      Description

      Run  106188.zip  demo  and  listview won't  AutoScroll,  also see  notAutoScroll.mp4

      this bug only reproduce  dev branch(also 6.3 exsits probably)

       

      since  https://codereview.qt-project.org/c/qt/qtbase/+/377567 and  https://codereview.qt-project.org/c/qt/qtbase/+/385042 , doAutoScroll function use d->draggedPosition - d->offset()  replace with d->viewport->mapFromGlobal(QCursor::pos()) 

      so,we should also update state  when dragging . see https://github.com/qt/qtbase/blob/dev/src/widgets/itemviews/qabstractitemview.cpp#L4028-L4036

       

        Attachments

        1. 106188.zip
          5 kB
          kingderzhang
        2. notAutoScroll.mp4
          2.23 MB
          kingderzhang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            vhilshei Volker Hilsheimer
            Reporter:
            kingderzhang kingderzhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes