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

pyside-uic should save a reference to QSpacerItem

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P5: Not important
    • Resolution: Out of scope
    • Affects Version/s: 1.1.0, dev
    • Fix Version/s: dev
    • Component/s: PySide

      Description

      When a ui file from designer is converted into python with pyside-uic,
      convenient references are saved in the generated class for referencing widgets
      and layouts. Widgets and layouts are also named with setObjectName(). This is
      helpful since python code can later access and programmatically alter these
      objects. QSpacerItem is treated differently, though. Instances are created as
      local variables in the setupUi() method, and no objectName is set. It would be
      nice if spacers were handled like widgets and layouts.

        Attachments

        1. bug24.py
          1 kB
        2. bug24.ui
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            nmelchior Nik Melchior
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes