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

Crash when re-implementing createMimeDataFromSelection on QPlainTextEdit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.13.0
    • PySide
    • None
    • Windows
    • 58d3ac8842d36a6ce615188079e82598efa85b7e (pyside/pyside-setup/5.15)

    Description

      I've been trying to strip out the mime styling information from the QPlainTextEdit on copy. To do this I've tried re-implementing createMimeDataFromSelection. Creating a new QMimeData object and returning that from createMimeDataFromSelection results in a crash in PySide2. But not in PyQt5.
       
      I've attached a python file illustrating the issue. If I try to copy out of the 3rd QPlainTextEdit it crashes. If the PySide2 import is changed to PyQt5 it works as expected and does not crash.
       
      I initially created a stackoverflow post about this issue before realizing it works in PyQt5 as expected. There is some more info there about what I was trying to accomplish.

      Attachments

        1. pyside1082_trace.txt
          30 kB
          Friedemann Kleint
        2. pyside1082.py
          2 kB
          Friedemann Kleint
        3. styleTestMin.py
          2 kB
          Daniel Griffin
        For Gerrit Dashboard: PYSIDE-1082
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            dgriffin Daniel Griffin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes