You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm using PyQt6 designer and need to use the pyuic6 to covert the .ui to *_ui.py files.
But when I include horizontal lines I get the following errors.
Generating Qt_Windows/MainWindow_ui.py from MainWindow.ui
PyQt6.uic.uiparser: toplevel widget is QMainWindow
......
PyQt6.uic.properties: setting property orientation
Traceback (most recent call last):
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/pyuic.py", line 77, in main
generate(args.ui, args.output, args.indent, args.execute,
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/pyuic.py", line 155, in generate
compileUi(ui_file, pyfile, execute, indent)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/compile_ui.py", line 169, in compileUi
winfo = compiler.UICompiler().compileUi(uifile, pyfile)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/Compiler/compiler.py", line 101, in compileUi
w = self.parse(input_stream)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 1014, in parse
self._handle_widget(ui_file.widget)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 842, in _handle_widget
self.traverseWidgetTree(el)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 818, in traverseWidgetTree
handler(self, child)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 280, in createWidget
self.traverseWidgetTree(elem)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 818, in traverseWidgetTree
handler(self, child)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 280, in createWidget
self.traverseWidgetTree(elem)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 818, in traverseWidgetTree
handler(self, child)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 280, in createWidget
self.traverseWidgetTree(elem)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 818, in traverseWidgetTree
handler(self, child)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 280, in createWidget
self.traverseWidgetTree(elem)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 818, in traverseWidgetTree
handler(self, child)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 512, in createLayout
self.traverseWidgetTree(elem)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 818, in traverseWidgetTree
handler(self, child)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 555, in handleItem
self.traverseWidgetTree(elem)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 818, in traverseWidgetTree
handler(self, child)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 271, in createWidget
self.stack.push(self._setupObject(widget_class, parent, elem))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/uiparser.py", line 237, in _setupObject
self.wprops.setProperties(obj, branch)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/properties.py", line 428, in setProperties
getattr(self, prop_name)(widget, prop)
File "/path/to/.venv/lib64/python3.12/site-packages/PyQt6/uic/properties.py", line 513, in orientation
{'Qt::Horizontal': QtWidgets.QFrame.Shape.HLine,
KeyError: 'Qt::Orientation::Horizontal'
make: *** [Makefile:10: Qt_Windows/MainWindow_ui.py] Error 1
I'm not sure what you need to find the error, but if you need anything else, please let me know
The text was updated successfully, but these errors were encountered:
pyqt-tools is a repackaging of existing Qt and PyQt tooling in a compiled form that is readily installed within the Python ecosystem. It's almost more or less unmaintained at this point. This error appears to be an issue in PyQt6 itself so you will probably need to go there for help with it. https://riverbankcomputing.com/support/pyqt You will likely also need to be working with a newer version than is included in the existing repackaging releases of pyqt-tools.
Sorry I'm not more directly helpful on this issue.
So I'm using PyQt6 designer and need to use the pyuic6 to covert the .ui to *_ui.py files.
But when I include horizontal lines I get the following errors.
I'm not sure what you need to find the error, but if you need anything else, please let me know
The text was updated successfully, but these errors were encountered: