Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129190

pyuic6 error with layout alignment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.7.1
    • Build tools: uic
    • None
    • VS Code 1.92.9 running on Rpi5
      Qt for Python extension V 7.6.0

      pyuic6 V 6.7.1

    Description

      I created the attached simple .ui file using Qt designer via the Qt for Python extension in VS Code.   When this .ui file is passed to uic using the following a parsing error is reported. 

      pyuic6 mainwindow.ui -o MainWindow.py

      .....   line 61, in _parse_alignment
          _, qt_align = qt_align.split('::')
          ^^^^^^^^^^^
      ValueError: too many values to unpack (expected 2)

       

      The main window has three widgets and I set the layout alignment of one of the widgets using designer.   The file is successfully parsed if I change the layout alignment of that widget to "no alignment".

       

      .ui file and debug output of  pyuic6 attached.

      Attachments

        1. debug file.txt
          3 kB
          mike s
        2. mainwindow.ui
          1 kB
          mike s
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            mikeabuilder mike s
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes