Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.5.3
-
None
Description
It seems as if all properties of classes derived from QStyleOption are broken. Give the following example code:
from PySide6.QtCore import QRectF from PySide6.QtWidgets import QStyleOptionGraphicsItem option = QStyleOptionGraphicsItem() option.exposedRect = QRectF(0, 0, 10, 10)
Mypy will fail with the following error:
error: "QStyleOptionGraphicsItem" has no attribute "exposedRect" [attr-defined]
Nevertheless, the property is valid: https://doc.qt.io/qt-6/qstyleoptiongraphicsitem.html#exposedRect-var
Attachments
Issue Links
- duplicates
-
PYSIDE-2263 QColorConstants type hints are incomplete
- Closed