Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-355 Complete Pyside 2 support towards generic QML support
  3. PYSIDE-444

Implement dynamic lookup of QML properties declared inside QML code

    XMLWordPrintable

    Details

    • Type: Technical task
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Fix Version/s: dev
    • Component/s: PySide
    • Labels:

      Description

      So given a QML file that has something like

      Item {
      property int aValue: 1
      }
      

      user should be able to access the property from Python like

      item = quickView.rootObject()
      print(item.aValue)
      

      Currently the dynamic lookup works for signals and slots.
      Starting point is in pyside.cpp -> getMetaDataFromQObject

        Attachments

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

          Activity

            People

            Assignee:
            alexandru.croitor Alexandru Croitor
            Reporter:
            alexandru.croitor Alexandru Croitor
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes