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

Component Unknown when using Inline Components

    XMLWordPrintable

Details

    • Windows
    • 5c1cbf6b3fc253a947007a2fa961d45676a847fb (qt-creator/qt-creator/master)

    Description

      The documentation highlights inline component declaration but Qt Creator and Qt Design Studio complain the component is unknown. The UI seems to display properly in live preview but the editor marks the line as an error.

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          component Level : Rectangle {
              property bool activated: false
          }
          
          Level {    // Error M300 Unknown Component
      
          }
      }

      Attachments

        Issue Links

          Activity

            People

              fawzi Fawzi Mohamed
              jbattin Jason Battin
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: