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

qmllint: typechecking 'Overlay' attached property fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.1, 6.9.0 FF, 6.9
    • 6.8.0
    • QML: Tooling
    • None
    • 5ba55edaf (dev), 51f233314 (6.8)

    Description

      This simple example won't pass qmllint:

       
      import QtQuick
      import QtQuick.Controls
      
      Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
      
        Label {
          anchors.centerIn: Overlay.overlay
        }
      }
      

      output:

      Warning: /.../Main.qml:11:31: Member "overlay" not found on type "QQuickOverlay" [missing-property]
          anchors.centerIn: Overlay.overlay
                                    ^^^^^^^
      

      This works in 6.7.

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            njeisecke Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes