Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.8.0
-
None
Description
In version 6.8.0, when using UIC Tool to convert .ui files to .py files. The center-aligned code is not converted correctly.
For example, in version 6.7.0, UIC Tool normally converts the code like this:
self.LayoutRegistered.addWidget(self.autoLogin, 0, Qt.AlignmentFlag.AlignVCenter)
But in version 6.8.0, the conversion looks like this:
self.LayoutRegistered.addWidget(self.autoLogin, 0, Qt.AlignmentFlag.Qt.AlignmentFlag.AlignVCenter)
I solved the problem after trying to remove the extra Qt.AlignmentFlag.
Also I found that in QT Design 6.8.0 the alignment of the components is not reported correctly, even after manually clicking Save and opening the file again, the alignment settings are still not saved.
Attachments
Issue Links
- duplicates
-
QTBUG-129503 Reg->6.7.3: In Qt Designer, the widgets' Layout Alignment option is ineffective (unable to generate corresponding code)
- Closed