<div>Hello,<br></div><div><br></div><div>I was playing with PyQt6 and I've encountered a bug with uic.<br></div><div><br></div><div>I have attached the untitled.ui file and the main.py file. when running `python3 main.py` it breaks with the following error:<br></div><div><br></div><div>```<br></div><pre style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.9px; margin-top: 0px; margin-bottom: 16px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: var(--color-canvas-subtle); border-radius: 6px; color: rgb(201, 209, 217); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><code style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.9px; padding: 0px; margin: 0px; background: transparent; border-radius: 6px; word-break: normal; white-space: pre; border: 0px; display: inline; overflow: visible; line-height: inherit; overflow-wrap: normal;">Traceback (most recent call last):
File "/home/msmetko/Projects/qt/main.py", line 12, in <module>
window = Ui()
...
...
File "/home/msmetko/Projects/qt/venv/lib/python3.9/site-packages/PyQt6/uic/uiparser.py", line 62, in _parse_alignment
align = getattr(QtCore.Qt, qt_align)
AttributeError: type object 'Qt' has no attribute 'AlignHCenter'</code><br></pre><div>I was running the main.py inside a freshly made venv with these requirements:<br></div><div>```<br></div><div>click==7.1.2<br></div><div>greenlet==1.1.2<br></div><div>msgpack==1.0.2<br></div><div>pynvim==0.4.3<br></div><div>PyQt6==6.2.1<br></div><div>pyqt6-plugins==6.1.0.2.2<br></div><div>PyQt6-Qt6==6.2.1<br></div><div>PyQt6-sip==13.1.0<br></div><div>python-dotenv==0.19.2<br></div><div>qt6-applications==6.1.0.2.2<br></div><div>qt6-tools==6.1.0.1.2<br></div><div>```<br></div><div><br></div><div>I've also found a solution:<br></div><div>```<br></div><div>$ git diff uiparser-old.py uiparser.py<br></div><div>62c62<br></div><div>< align = getattr(QtCore.Qt, qt_align)<br></div><div>---<br></div><div>> align = getattr(QtCore.Qt.AlignmentFlag, qt_align)<br></div><div>```<br></div><div><br></div><div>I had no idea where to put this but I was refered to this mailing list.<br></div><div><br></div><div>Kind regards, and have a nice day,<br></div><div>Marijan Smetko<br></div><div><br></div>