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

Nested property access fails with bogus non-existent property error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.15.6, 6.2.2
    • PySide
    • None
    • Linux/X11
    • cf40e624e6 (pyside/pyside-setup/dev)

    Description

      Create two new QObject types in python and register both of them with qmlRegisterType().

      e.g. class Car and Dashboard where Car contains a Dashboard object and exposes it through a property.

      Then in QML, create an object of the type and try to setup an initial binding.

      e.g.

      Car

      {     id: companyCar     dashboard.speed: 32 }

      Fatal error results - Cannot assign to non-existent property "speed".

      Minimal full repro files attached.

      Same files and qml work fine with PyQt6.

       

       

      Attachments

        1. main.py
          2 kB
        2. main.qml
          0.7 kB
        3. requirements.txt
          0.0 kB
        4. build.sh
          0.2 kB
        5. run.sh
          0.1 kB
        6. pyside1836_pyqt.zip
          2 kB
        7. pyside1836.zip
          2 kB
        8. pyside1836_decorators.zip
          2 kB
        For Gerrit Dashboard: PYSIDE-1836
        # Subject Branch Project Status CR V

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            johnf John Freeborg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes