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

Compilation of UI file with QTableWidget incorrectly adds C code to py file

    XMLWordPrintable

    Details

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

      Description

      I have created a UI file through QT creator which adds a QTableWidget. Through the creator I have added columns. I compile the ui file with pyside2-uic and a python file is generated. The created python file appears to have incorrectly generated C code instead of python. For example (from generated py file):

      ...

      self.recoveryTable = QTableWidget(self.recoveryGroup)
      if (self.recoveryTable.columnCount() < 4)
         self.recoveryTable.setColumnCount(4)

      ...

      This is not valid python syntax.

       

        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:
            hswope Howard Swope
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes