Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.14.0
-
21a14767b30f6f8d27b06e609ec8eaa5ddffb324 (qt/qtbase/5.14)
Description
Running pyside2-uic on a .ui file containing a definition for property "cursor" generates code which doesn't have QCursor imported. Running a project with the generated code results in
File "C:\test\ui_mainwindow.py", line 28, in setupUi self.label.setCursor(QCursor(Qt.SizeFDiagCursor)) NameError: name 'QCursor' is not defined
See the attached ui_mainwindow.py for reference.
Steps to reproduce:
- Run pyside2-uic on the attached .ui file
Attachments
For Gerrit Dashboard: PYSIDE-1182 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
286588,2 | uic/Python: Fix missing QCursor import | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |