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

Component Unknown when using Inline Components

XMLWordPrintable

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

      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
      
          }
      }

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes