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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.15.4
    • 6.1.2
    • PySide
    • None
    • Python 3.9.6
      PySide 6.1.2
    • Linux/X11
    • 9b5fa60d1fed5025e97c393ba1bab80f81ba833a (pyside/pyside-setup/dev) 3833b0aacc84924bd41cb03ab11cab0f18cd0dc9 (pyside/pyside-setup/6.1) 0c75c823b0c8e48f03fa0bb166b195bfa7d5f2e9 (pyside/tqtc-pyside-setup/5.15)

      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).

       

        1. window.ui
          1 kB
        2. window.py
          2 kB
        3. pyside1626.zip
          2 kB
        4. pyside1626_aggr.zip
          3 kB
        5. main.py
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes