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

pyside-uic2 does not work with qtablewidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.14.0
    • PySide
    • None
    • 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
          Hajo Kortmann
        2. mainwindow.ui
          1 kB
          Hajo Kortmann
        3. ui_mainwindow_5_13_2.py
          2 kB
          Hajo Kortmann
        4. ui_mainwindow_5_14.py
          2 kB
          Hajo Kortmann
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            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