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

UpdateGeometry causes crash in a multiple inheritance tree where the first superclass is itself a subclass of QWidget and the second superclass is a QFrame

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.6.1
    • PySide
    • None
    • Windows

    Description

      The following contrived example

      import sys
      
      from PySide6.QtWidgets import QApplication, QWidget, QFrame
      
      
      class A(QWidget):
      
          def __init__(self, **kwargs) -> None:
              super().__init__(**kwargs)
              self.updateGeometry()
      
      class B(A, QFrame):
      
          def __init__(self, **kwargs):
              super().__init__(**kwargs)
              #self.updateGeometry()
      
      
      if __name__ == '__main__':
          app = QApplication(sys.argv)
          B()
          sys.exit(app.exec())
      
      

      causes the following error

      Process finished with exit code -1073741819 (0xC0000005) 

      when executing either one of the

      self.updateGeometry() 

      Changing the superclass of A to QWidget or the superclass of B to QFrame causes the error to disappear. 

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              jdegeete Jeroen De Geeter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes