Priority: Not Evaluated
Affects Version/s: 5.12.4, 5.12.1, 5.12.2, 5.12.3, 5.13.0
Fix Version/s: 5.12.5
Commits:a2405a27e738e7a7bb379ed0ada07b317650ca09 (pyside/pyside-tools/5.12) bd27bac457943aab1082ac1c5b3f81ef9574c671 (pyside/pyside-tools/5.12)
Hi, when using Qt Designer to create UI files and then using pyside2-uic to generate the python files, pyside2-uic does not generate the QtWebKit or QQuickWidget import statements correctly and puts them at the bottom of the file.
for example, when trying to use a QWebview from qt designer, pyside2-uic generates this at the bottom:
from PySide2 import QtWebKit
this then causes issues when running as the webview that is from QtWebKit is in another place in pyside2, and i have to manually copy this in instead and remove the old module import:
from PySide2.QtWebEngineWidgets import QWebEngineView
here is a stack trace if that's helpful:
Would be really nice to just generate the files and not have to modify them afterwards, if a UI file contains lots of web views or qquickwidgets these will have to be changed every time.