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

Error in uic generated file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15.1
    • Tooling
    • None
    • All

    Description

      When I generate a .py file using pyside2-uic with a ui file from designer, there are ints as callables.

      For example, these are two lines that get generated that throw an error:

      self.gridLayout.setSpacing(10())
      self.gridLayout.setMargin(10())

      and the error it generates:

      {{ self.gridLayout.setSpacing(10())}}
      TypeError: 'int' object is not callable

      Attachments

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            ttftw ttftw
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: