Details
Description
Apparently QObject __init__ method does not call super to allow cooperative multiple inheritance as suggested in https://rhettinger.wordpress.com/2011/05/26/super-considered-super/
The script attached allows to reproduce the problem and it works with PyQt5.
I am not 100% sure whether this is a bug or intended behavior.
Attachments
Issue Links
- relates to
-
PYSIDE-800 Segmentation fault on QGraphicsLineItem and QObject hybrid using super()
- Closed
-
PYSIDE-1434 can't use ABC with Pyside2
- Closed
-
PYSIDE-1991 Multiple Inheritance segfault on PyPySide
- Reported
-
PYSIDE-2397 RuntimeError when instantiating a class, which inherits multiple subclasses of a Qt class, some Pythonic, some Qt ones
- Open
-
PYSIDE-1613 Unexpected behavior with inheritance and properties
- Closed
-
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
- Closed
-
PYSIDE-2844 Multiple inheritance gives TypeError in __init__
- Closed
-
PYSIDE-2506 Unable to subclass QPaintDeviceWindow
- Closed
-
PYSIDE-2654 Multiple inheritance with mixin class get TypeError in __init__
- Closed
- resulted in
-
PYSIDE-2282 QMainWindow and multiple inheritance from QWidget
- Closed
-
PYSIDE-2294 TypeError with PySide 6.5.0 for multiple inheritance of MainWindow
- Closed
-
PYSIDE-2304 Class inheritance order breaks initialisation order
- Closed