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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: