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

pyside6-uic python list support

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.4
    • 6.3.0
    • PySide
    • Windows
    • 613b52bfee (qt/qtbase/dev) 613b52bfee (qt/tqtc-qtbase/dev)

    Description

      I have created a custom widget for QtDesigner (PySide6) with a new list attribute. When I try to generate the PY file from my UI file using pyside6-uic utility, the generated code translades the list into QStringList instead of a python list. Therefore I cannot run that code, because QStringList is obsolete since PyQt4.

      This could be easily solved by translating the "stringlist" UI tag into a python list, like PyQt5 does.

      Attachments

        1. image-2022-05-25-11-44-04-677.png
          image-2022-05-25-11-44-04-677.png
          63 kB
        2. Modbus.ui
          4 kB
        3. pyside1942_tr.ui
          0.7 kB
        4. pyside1942.ui
          0.7 kB
        5. Ui_ModbusQT_PyQt5.py
          4 kB
        6. Ui_ModbusQT_PySide6.py
          5 kB

        Issue Links

          Activity

            People

              kleint Friedemann Kleint
              igc-dev Ivan Gonzalez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: