Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.5.1
-
None
-
Linux, Python 3.10, PySide6 6.5.1
-
-
30a684904 (dev), 95857c8ca (6.5)
Description
As a followup to https://bugreports.qt.io/browse/PYSIDE-2294
from PySide6.QtWidgets import QApplication, QMainWindow, QLabel from typing import Generic, TypeVar ItemType = TypeVar("ItemType") class MainWindow(QMainWindow, Generic[ItemType]): def __init__(self): QMainWindow.__init__(self, parent=None) self.resize(400, 300) self.lbl = QLabel(self) self.lbl.setText("XXX") app = QApplication([]) window = MainWindow() window.show() app.exec()
creates a similar error
Traceback (most recent call last): File "/home/mark/git/napari/foo.py", line 16, in <module> window = MainWindow() File "/home/mark/git/napari/foo.py", line 9, in __init__ QMainWindow.__init__(self, parent=None) TypeError: object.__init__() takes exactly one argument (the instance to initialize)
Attachments
Issue Links
- relates to
-
PYSIDE-2294 TypeError with PySide 6.5.0 for multiple inheritance of MainWindow
- Closed
Gerrit Reviews
For Gerrit Dashboard: PYSIDE-2354 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
481289,17 | Shiboken: Remove an old patch that is no longer necessary | dev | pyside/pyside-setup | Status: ABANDONED | +1 | 0 |
481587,3 | Shiboken: Remove an old patch that is no longer necessary | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
482262,2 | Shiboken: Remove an old patch that is no longer necessary | 6.5 | pyside/pyside-setup | Status: MERGED | +2 | 0 |