Open hannesdelbeke opened 2 years ago
which means it's more work to change existing scripts to use Qt5.
example
instead of simply copy pasting Qt5 over PySide2, like this
from Qt5.QtWidgets import QApplication, QWidget
from Qt5.QtGui import QCloseEvent, QIcon, QImage, QPixmap, QWindow
from Qt5.QtCore import QEvent, QObject, QRect, QSettings
I need to do this:
import Qt5
QApplication = Qt5.QtWidgets.QApplication
QWidget = Qt5.QtWidgets.QWidget
QCloseEvent = Qt5.QtGui.QCloseEvent
QIcon = Qt5.QtGui.QIcon
QImage = Qt5.QtGui.QImage
QPixmap = Qt5.QtGui.QPixmap
QWindow = Qt5.QtGui.QWindow
QEvent = Qt5.QtCore.QEvent
QObject = Qt5.QtCore.QObject
QRect = Qt5.QtCore.QRect
QSettings = Qt5.QtCore.QSettings
Thanks, a PR is very welcome.
the old Qt module can easily subsitute Pyside2 but when trying that with the new Qt5 it has to be done in a specific way.
it doesn't allow us to do this
This is fine
This is fine