Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2306

Aliased dot-properties don't get autocompleted correctly

XMLWordPrintable

    • 02b7eacf4b1884e11c2c8668080af1a3742cbf5e

      Have the following QML files:

      Blah.qml:

      Text {
          id: txt
          property alias font: txt.font
          width: 640
          height: 480
      }
      

      Main.qml:

      Rectangle {
          width: 200
          height: 323
          Blah {
              font.pixelSize: 24
              text: "boo hoo"
          }
      }
      

      In the snippet below, font will have red underline below it with the message "font does not have members". However, the code compiles and works correctly.

            ckamm Christian Kamm
            holmsted Lasse Holmstedt
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: