Details
Description
When generating a python file from a .ui file, pyside-uic creates a line in generated python file for a main window like the following:
some_list_view.setEditTriggers(QAbstractItemView.NoEditTriggers)
But pyside-uic does not add any import statement for QAbstractItemView at the top of the file.
i.e:
from PySide6.QtWidgets QAbstractItemView
therefore, the program cannot be run without making a manual modification to the file to add the import statment above each time pyside-uic is created.
This does not appear to be intentional behavior
Attachments
Issue Links
- duplicates
-
PYSIDE-1773 uic doesn't import QAbstractItemView for QTableView/QTreeView EditTriggers
- Closed