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

Support Inline components in creator code model

    XMLWordPrintable

Details

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

    Description

      Support for inline components, has been added in 5.15, and the parser update lets Creator parse them, but errors are reported about them.

      Failing example:

      import QtQuick.Window 2.15
      import QtQuick 2.15
      
      Window {
          width: 200
          height: 100
          visible: true
          title: "Inline component test"
      
          component TestComponent : Item {
              property alias text: innerText.text
      
              width: innerText.implicitWidth
              height: innerText.implicitHeight
      
              Text {
                  id: innerText
              }
          }
      
          TestComponent {
              text: "Something"
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              fawzi Fawzi Mohamed
              fawzi Fawzi Mohamed
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes