- remove
@staticmethodapplied to functions - fix
QTabBar.setButtonWidget()to acceptNoneas a widget argument - fix
QTreeWidget.setItemWidget()andQListWidget.setItemWidget()to acceptNoneas a widget argument - fix functions
qCritical,qDebug,qFatal,qWarning,qtTrId,SLOTto acceptstrinstead ofbytes - fix
QObjectmethodsproperty,setProperty,tr,inheritsto acceptstrinstead ofbytes - fix
QObjectmethodsconnectanddisconnectto acceptstrinstead ofbytes - fix
setAlignementmethods to acceptQt.AlignmentFlag(likeQt.AlignRight), see PR #5 - fix
QLayoutderivative to acceptNoneas parent argument
Many core improvements over previous version
- uses automatic code transforms from libcst to update all stubs at once
- add all missing signals to the stubs (many were missing)
- incorrect methods names are no longer silently ignored
- fix all QFlags values incorrectly declared as the QFlag wrapping class
- fix all method accepting a
QCursorto accept also aQt.CursorShape - add conversion from
QByteArrayto bytes - add
exec()to QDialog - fix
data()andsetData()to accept Qt.ItemDataRole - add all method for operations on QFlag:
__or__,__xor__, ... - fix all method accepting a QColor to accept also a
Qt.GlobalColor - fix signature of
QCoreApplication.translate() - fix
QLabel.setAlignment()to accept also Qt.AlignmentFlag
Initial release for PySide2 v5.15.2.1
- fix
Signalto make it accept method emit() - fix
qVersion()returns string, not bytes - fix
QMessageBox.warning, information, critical, question, about, aboutQt to accept None as parent argument - fix
QProgressDialog.setCancelButton()accepting None - fix
QTreeWidget.topLevelItem()returning possibly None - fix
QMessageBox.StandardButtonor combinations - fix
QProcess.ExitStatusenum conversion to int - fix
QAction.setShortcut()to accept string as argument - fix
QTreeWidgetItemcomparison with< - fix
Signal.connect()return value to bool instead of None - fix
QTimer.timeoutundeclared signal - support all
QSizeandQSizeFoperations - improve signature of operations on
QPolygon - improve
QPaintermethods which use lists ofQPointin entry - improve
QObject.findChildren()type information - fix
QLineEdit.setText()to accept None - add
QDialogButtonBox.StandardButton__or__operations - fix
Slot()argument and return value type-checking - fix missing methods being undetected for all Qt objects
- add platform-specific stubs: QMacExtras, QWinExtras, QX11Extras