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

Multiple inheritance with Python class that inherits from QObject results in Seg fault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.9.0, 6.9.1
    • PySide
    • None
    • Python 3.11 OSX Sequoia Apple Silicon
    • macOS

    Description

      A simple multiple inheritance scenario will cause Pyside to seg fault.

      from PySide6.QtWidgets import QApplication, QWidget
      from PySide6.QtCore import QObject
      
      class Test1(QObject):
          pass
      
      # Inheriting directly from QObject will fail with a type error.
      class Crashing(Test1, QWidget):
          pass
      
      app = QApplication([])
      window = Crashing()
      window.show()
      app.exec()
       

      Attachments

        1. pyside3121_stack.txt
          29 kB
          Friedemann Kleint
        2. pyside3121.py
          0.5 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            kmonson Kyle Monson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes