Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2890

UIC Tool convert .ui file to .py file Qt.AlignmentFlag.AlignHCenter error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.8.0
    • PySide
    • None
    • Windows

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              appleman7703 mr gu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes