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

QDropEvent still be passed to QAbstractItemView even when it's already accepted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.3, 6.0.4
    • Widgets: Itemviews
    • None
    • Linux/X11

      I have a subclass which inherits QListView.

      I accepted the QDropEvent in overrided dropEvent() function, and then I invoked QListView::dropEvent(). the event will not be  handled in Qt 5.11, but in 5.15, the event is handled by QAbstractItemView and the dropMimeData() function is invoked in my listview's model, which is  not correct I think.

       

      the picture above is the result of drop a file into the listview, although the event is accepted but the dropMimeData is still invoked.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            xust St Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes