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

Qt Creator does not recognize attached properties of Overlay in Popup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 4.10.0
    • Quick / QML Support
    • None
    • Windows

    Description

      No suggestions when typing Overlay in Popup item and M16 warning with Overlay attached properties in Popup item (e.g Overlay.modal).

      Example:

      import QtQuick 2.13
      import QtQuick.Controls 2.13
      
      ApplicationWindow {
          id: window
          
          width: 400
          height: 400
          visible: true
      
          Button {
              text: "Open"
              onClicked: popup.open()
          }
      
          Popup {
              id: popup
              parent: Overlay.overlay
              x: Math.round((parent.width - width) / 2)
              y: Math.round((parent.height - height) / 2)
              modal: true
              width: 100
              height: 100
      
              Overlay.modal: Rectangle {  // Invalid property name "Overlay". (M16)
                  color: "#aadc143c"
              }
          }
      }
      

       

      Attachments

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

        Activity

          People

            tjenssen Tim Jenssen
            v.karamichail Basil Karamichael
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes