Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82591

Object.getOwnPropertyNames() doesn't work with attached properties

    XMLWordPrintable

Details

    • b4663aa5b6 (qt/qtdeclarative/dev) b4663aa5b6 (qt/tqtc-qtdeclarative/dev)

    Description

      import QtQuick 2.12
      import QtQuick.Controls 2.12
      import QtQuick.Controls.Material 2.12
      
      ApplicationWindow {
          id: root
          visible: true
          Component.onCompleted: console.log(Material, "has properties", Object.getOwnPropertyNames(root.Material))
      }
      

      output:

      $ qml material-props.qml 
      [     0.000 D] qml onCompleted - QQuickMaterialStyle(0x5632cf078980) has properties []
      

      Attachments

        For Gerrit Dashboard: QTBUG-82591
        # Subject Branch Project Status CR V

        Activity

          People

            ulherman Ulf Hermann
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes