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

[Regr. 6.7.3 -> 6.8.0] qmllint - Overlay

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.8.0
    • None
    • All

      Using the example from popup-positioning Qt 6.8.0 generates a new qmllint warning:
      Example:

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

      Warning:

      Warning: Main.qml:20:20: Member "overlay" not found on type "QQuickOverlay" [missing-property]
      			parent: Overlay.overlay
                      			^^^^^^^
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            larss Lars Schmertmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes