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

QEnum does not work with QML properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.4.1
    • PySide
    • None
    • All
    • c4076d430 (dev), 50209f86c (dev), 77613d830 (6.4), 279ec9df2 (6.4)

    Description

      Exposing an enumeration from Python-based QML element and using at as a property does lead to segfault. Also accessing the enumeration values from within QML does lead to a segfault. Most likely a side-effect of the new-style enums introduced with PySide 6.4

      Example with methods to access the enum is attached.

      Attachments

        1. exposing_qenum_bug.zip
          1 kB
        2. pyside2160_nosingleton.zip
          2 kB
        3. pyside2160_qt5.zip
          2 kB
        4. pyside2160_stack.txt
          101 kB
        5. pyside2160.zip
          2 kB
        6. pyside2160-pyqt6.zip
          2 kB

        Issue Links

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

          Activity

            People

              ctismer Christian Tismer
              strahlex Alexander Rössler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: