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

False positive error when running application

XMLWordPrintable

      Besides QtCreator showing an error

      "glyph" is not a member of "QtObject" (M18)

      when running the following application the output shows

      qrc:/qt/qml/untitled5/Main.qml:21:14: Cannot assign to non-existent property "glyph"

      import QtQuick
      
      Window {
          id: root
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          component MyText: Item {
              property QtObject icon: QtObject {
                  property alias glyph: test.text
              }
      
              Text {
                  id: test
              }
          }
      
          MyText {
              icon.glyph: "Hallo"
          }
      }
      

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

            qtqmlteam Qt Qml Team User
            henning Henning Gründl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes