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

Overlay seems to be unknown to the typesystem

XMLWordPrintable

    • 4cbc25f37 (dev), 8f68df62b (6.5)

      Compiling the example from the documentation

      import QtQuick
      import QtQuick.Controls.Material
      
      Window {
          id: win
          width: 640
          height: 480
          visible: true
          title: "Sandbox"
      
          Button {
              onClicked: popup.open()
      
              Popup {
                  id: popup
      
                  parent: Overlay.overlay
        
                  x: Math.round((parent.width - width) / 2)
                  y: Math.round((parent.height - height) / 2)
                  width: 100
                  height: 100
             }
          }
      }
      

      generates these messages

      Warning: main.qml:17:17: Unqualified access
              parent: Overlay.overlay
                      ^^^^^^^
      Error: main.qml:17:17: Could not compile binding for parent: Cannot access value for name Overlay
              parent: Overlay.overlay
                      ^^^^^^^
      

      .

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

            ulherman Ulf Hermann
            cajus Cajus Pollmeier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes