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

Dragging in a listview shifts by 1 pixel each drag

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.4
    • None
    • Linux/X11

    Description

      When implementing a drag/drop between two listviews, i noticed that every drag/drop will shift the listview item in question by one pixel. 

      I tried attaching to the Drag.onDragFinished signal and reset the x and y positions after the drag, but the shift seems to be happening after this signal, so anything you do here is ignored.

      The only way to reset it i've found is to start a 1ms timer on the drag finished to reset after this signal is completed.

       

      I attached a project that shows this issue. basically it will keep shifting every drag. I would expect there to be no shift.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ihaber Ian Haber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes