Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
None
-
6.x, 6.2.0, 5.15.15
-
None
-
-
1a8923df9 (dev), 97b3ce600 (6.6)
Description
When trying to subclass QPaintDeviceWindow from python the application throws an exception when trying to instantiate the new subclass:
TypeError: PySide6.QtGui.QWindow isn't a direct base class of <name-of-my-subclass>
This is 100% reproducible by simply creating a new class that inherits from PySide6.QtGui.QPaintDeviceWindow even if the class has as little code as this:
class CustomWindow(PySide6.QtGui.QPaintDeviceWindow):
pass
See the sample.pyfor a full code example.
class Q_GUI_EXPORT QPaintDeviceWindow : public QWindow, public QPaintDevice
similar to
class Q_WIDGETS_EXPORT QWidget : public QObject, public QPaintDevice
Attachments
Issue Links
- relates to
-
PYSIDE-1991 Multiple Inheritance segfault on PyPySide
- Reported
-
PYSIDE-1564 QObject does not support cooperative multiple inheritance
- Closed