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

Unable to assign ChildClass to BaseClass for QML properties.

    XMLWordPrintable

Details

    • Windows
    • b9a9a890e (dev), 38697f739 (6.7)

    Description

      Unable to assign ChildClass to BaseClass for QML properties. This used to work in earlier versions (e.g., PySide6 6.6.2).

      To reproduce the issue, run the attached example project.

      Expected behavior (as in earlier versions): ChildClass text shows up.

      Behavior in PySide 6.7.0: ChildClass text doesn't show up, and the following warning appears instead: "Unable to assign ChildClass to BaseClass."

      As a workaround in PySide 6.7.0,  set the qml property type to 'var' instead.

      Attachments

        1. property_error_example.zip
          1 kB
          Mehdi Belila
        2. pyside2709_cpp.zip
          2 kB
          Friedemann Kleint
        3. pyside2709_decorator.zip
          3 kB
          Friedemann Kleint
        4. pyside2709_diag.diff
          5 kB
          Friedemann Kleint
        5. pyside2709_log.txt
          4 kB
          Friedemann Kleint
        6. pyside2709_qml_diag.diff
          2 kB
          Friedemann Kleint
        7. pyside2709.zip
          3 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            mahdi.belila Mehdi Belila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes