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

Error in tool for converting UI to PY

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 5.13.0
    • Fix Version/s: 5.12.5
    • Component/s: PySide
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      3c402fef54106b65ab9c1df92c39c4626424fdd8

      Description

      I have created a "main.ui" in Qt Creator, and when I use the "pyside2-uic.exe" tool to convert the file to "main.py", there is a bug in the converted result. See the following as example:

      // def retranslateUi(self, MainWindow):
          MainWindow.setWindowTitle(QtWidgets.QApplication.translate("MainWindow", "Segmentation Inspector", None, -1))
          self.cbColorDepth.setItemText(0, QtWidgets.QApplication.translate("MainWindow", "Colour", None, -1))
          self.cbColorDepth.setItemText(1, QtWidgets.QApplication.translate("MainWindow", "Gray scale", None, -1))
          self.label_3.setText(QtWidgets.QApplication.translate("MainWindow", "Camera side:", None, -1))
          self.cbCameraSide.setItemText(2, QtWidgets.QApplication.translate("MainWindow", "Left", None, -1))
          self.cbCameraSide.setItemText(3, QtWidgets.QApplication.translate("MainWindow", "Right", None, -1))
      

       

      The first QComboBox ("cbColorDepth") has two items, correctly assigned positions "0" and "1".

      The second QComboBox ("cbCameraSide") also has two items, but these are incorrectly assigned positions "2" and "3"! Correct positions should be "0" and "1".

      It looks like the "positions counter" just continues, instead of starting over again, when assigning values for the second combobox.

      This was not a problem before I upgraded to latest version. Unfortunately I can't recall which version I had before.

        Attachments

        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:
              henrikt Henrik Toft
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes