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

objectName depends on non-NOTIFYable properties

    XMLWordPrintable

Details

    Description

      When running the below example I get "QDeclarativeExpression: Expression "(function $text()

      { return parent.objectName }

      )" depends on non-NOTIFYable properties:
      QDeclarativeRectangle::objectName"

      warnings on the output.

      It might be an idea to either add a objectNameChanged signal to QObject or to suppress the warning inside Qt.

      I use the objectName to create tooltips for indentification purposes during development.

      import Qt 4.7

      Rectangle {
      height : 200
      width : 200
      color : "lightsteelblue"
      objectName : "someRectangle"
      Text

      { anchors.centerIn : parent height : 30 text : parent.objectName }

      }

      Attachments

        Activity

          People

            aakenned Aaron Kennedy
            steveire Stephen Kelly (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: