Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.14.0
-
None
-
WIndows 10, Python 3.8.1, Qt 5.12.5
-
-
7c0341daeef9c975b0e736b9d8a52b9649c6a06c (qt/qtbase/5.14)
Description
I'm using pyside2-uic (on Windows) to generate a python file. But some QString are still generated though not supported in a Python3/Qt5 environment. It looks like it appears only when using a QTabWidget object.
Consequently, the pyside2-uic ends without error, but when running a Python program with the generated code, it logically fails (QString not supported).
Error message :
self.tabWidget.addTab(self.tab_options, QString())
NameError: name 'QString' is not defined
When I replace the 2 QString() with a python string (like "tab1", "tab2"), the Python program works well.
In attachment:
- Original .ui file (located in a qt folder in my project)
- Generated .py file (located in a qt folder in my project)
- main.py
So I guess there is some issue when generating the .py file whith QTabWidget, still generating a QString object like in the older versions.
Attachments
Issue Links
- is duplicated by
-
PYSIDE-1171 PySide2 5.14.0 breaks pyside2-uic and pyside2-rcc
-
- Closed
-