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

Aliased dot-properties don't get autocompleted correctly

    XMLWordPrintable

Details

    • 02b7eacf4b1884e11c2c8668080af1a3742cbf5e

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes