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

Inline components: Creator Text editor displays error when using inline components

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • Qt Creator 13.0.0-rc1
    • Quick / QML Support
    • None

    Description

      I have a MyComponent.qml file that defines an inline component:

      component Button : Rectangle {}
      

      If I use this inline component from main.qml:

      MyComponent.Button {}
      

      Qt Creator will issue an error in the text editor on the same line where the component is used:

      Unknown component
      

      The application builds and runs fine otherwise.

      Since Qt Creator fails to resolve inline components used this way, it also fails to give code completion support etc for those components.

      I have attached a small project that can be opened in Qt Creator, and that will demonstrate this issue.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            richard Richard Moe Gustavsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes