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

    • Bug
    • Resolution: Done
    • 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)

    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
          Julien Enche
        2. pyside1626_aggr.zip
          3 kB
          Friedemann Kleint
        3. pyside1626.zip
          2 kB
          Friedemann Kleint
        4. window.py
          2 kB
          Julien Enche
        5. window.ui
          1 kB
          Julien Enche

        Issue Links

          For Gerrit Dashboard: PYSIDE-1626
          # Subject Branch Project Status CR V

          Activity

            People

              ctismer Christian Tismer
              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