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

set correct state when drag item autoScroll

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 6.3
    • Widgets: Itemviews
    • None
    • deepin,ubuntu
    • 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
        2. notAutoScroll.mp4
          2.23 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            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