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

Segmentation fault when using .source() method of QDropEvent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6
    • 1.2.2
    • PySide
    • f23adec5c47f888542bf92820c98769c6e2d2cf0

    Description

      When the .source() method is called on a QDropEvent, for a drag-and-drop that originated with another Qt widget, there is a segmentation fault. This happens in the attached example if you type text into QTextEdit widget, and then try to drag the text within the QTextEdit widget. The segmentation fault does not occur if the line "print(str(event.source()))" is commented out. When the line is not commented out, it appears that the statement executes successfully (the appropriate output is sent to stdout) but a segmentation fault happens shortly thereafter.

      Attachments

        1. dnd.py
          0.6 kB
        2. pyside258_stack_linux.txt
          8 kB
        3. pyside258.py
          1 kB
        4. pyside-258-test_gui.py
          1 kB
        5. test_gui.py
          1 kB
        For Gerrit Dashboard: PYSIDE-258
        # Subject Branch Project Status CR V

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            cainesia ian caines
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes