Changes between Version 1 and Version 2 of Ticket #1635, comment 7
- Timestamp:
- Nov 24, 2020, 7:11:29 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1635, comment 7
v1 v2 7 7 5) QObject.findChild() does not have an options argument in PySide2 even though Qt and PyQt5 does, we use option to only look at immediate children. Qt bug report from Jan 2019 describes this, not fixed: https://bugreports.qt.io/browse/PYSIDE-905. Easy to work around by looping over children. 8 8 6) QVariant is not in PySide2. We use it in ui.widgets.ItemTable. Used by rotamers gui. Don't know how to fix this. 9 7) QAction.triggered signal handler takes a QEvent in PyQt5, but no argument in PySIde2, used in ui.widgets.tabbedtoolbar, easy fix.9 7) QAction.triggered signal handler takes an argument in PyQt5, but no argument in PySide2, used in ui.widgets.tabbedtoolbar and a hundred other places, easy fix. It is trickier, in PySIde2 if the callback takes one argument then it is called with a bool argument, otherwise it is not called with an argument! 10 10 8) QPainter is not a context manager (no __enter__ method) in PySIde2, used in ui.widgets.tabbedtoolbar, easy fix. 11 11