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

pyside-uic2 does not work with qtablewidget

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      Hi,

       

      using pyside2-uic on a ui-file including a tab widget does not work as expected in version 5.14 as the python files use QString() instead of "" for empty strings.

       

      Output from the attached example for version 5.14 (broken), line 33: self.tabWidget.addTab(self.tab, QString())

      Output from the attached example for version 5.13.2 (works), line 27:

      self.tabWidget.addTab(self.tab, "")

       

      Best regards

      Hajo Kortmann

       

      Attached files are minimum ui file, python script for running qt app and outputs from

      pyside2-uic mainwindow.ui -o ui_mainwindow.py

      for both versions.

        Attachments

        1. mainwindow.py
          0.4 kB
        2. mainwindow.ui
          1 kB
        3. ui_mainwindow_5_13_2.py
          2 kB
        4. ui_mainwindow_5_14.py
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            hajokortmann Hajo Kortmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes