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

Using PySide6 snake_case feature seems to not work well with file created using uic when deriving from the generated class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.1.2
    • Fix Version/s: 5.15.4
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Python 3.9.6
      PySide 6.1.2
    • Platform/s:
      Linux/X11
    • Commits:
      9b5fa60d1fed5025e97c393ba1bab80f81ba833a (pyside/pyside-setup/dev) 3833b0aacc84924bd41cb03ab11cab0f18cd0dc9 (pyside/pyside-setup/6.1) 0c75c823b0c8e48f03fa0bb166b195bfa7d5f2e9 (pyside/tqtc-pyside-setup/5.15)

      Description

      Using the snake_case feature simultaneously with files generated with uic does not seem to work.

      For example, when launching the attached script, I get : 

      AttributeError: 'PySide6.QtWidgets.QHBoxLayout' object has no attribute 'sizeHint'
      

      This is reproducible on several of my projects (which work just fine without activating snake_case).

      Is this supposed to work ? (according to PYSIDE-1561, yes).

       

        Attachments

        1. main.py
          0.4 kB
        2. pyside1626_aggr.zip
          3 kB
        3. pyside1626.zip
          2 kB
        4. window.py
          2 kB
        5. window.ui
          1 kB

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              ctismer Christian Tismer
              Reporter:
              jenche Julien Enche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes