Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2488

Linux drag-and-drop events wrong for editable QComboBox

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 6.3.2
    • PySide
    • None
    • All Linux and Qt6 AFAICT. Does not happen on Mac/Windows.
    • Linux/X11

    Description

      On Linux, an editable QComboBox does not receive drag-and-drop events correctly.  As soon as the drag enters the widget, it immediately gets both dragEnterEvent and dragLeaveEvent, and dropping on the widget does not call dropEvent, but instead (if the drop is a file) immediately enters file:///path-to-file in the line-edit part of the combobox.

       

      A short PyQt6 example demonstrating the problem is attached.

      Attachments

        1. test.py
          1 kB
          Eric Pettersen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            efp Eric Pettersen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes