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

    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

        1. pyside444_true_prop.zip
          1 kB
        2. pyside444.zip
          1 kB
        3. pyside444pyqt.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            alexandru.croitor Alexandru Croitor
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes