-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Description
Hi, Matthias!
I experienced next problem after upgrading KLayout/Python/Qt: RuntimeError: TypeError: unsupported operand type(s) for -: 'QPoint' and 'QPoint' in QFrame.contextMenuEvent
Code snippet:
def contextMenuEvent(self, event):
pos = event.pos() - pya.QPoint(0, self.__table_widget.horizontalHeader.height)
https://doc.qt.io/qt-6/qpoint.html list this and other arithmetic operators overloads as valid. Same may be true for other operators and primitive classes.
Build where this code worked: KLayout 0.28.12, Python 3.11.4, Qt 5.14.2. My current build uses KLayout 0.29.7, Python 3.12.7, Qt 6.7.3.
I looked into source code. Qt 6 bindings does not have arithmetic operators in QPoint and QSize (I did not look into other primitives), only augmented arithmetic operators.
Reactions are currently unavailable