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

QtObject and Component not recognized properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 9.0.0
    • Quick / QML Support
    • None

    Description

      When I do a fresh start of QtCreator, and create a project that makes use of QtObject or Component.xyz they are marked as either "Invalid property name (M16)" or "Unknown component (M300)":

      Even when directly importing QtQml which [is claimed to provide QtObject|https://doc.qt.io/qt-6/qml-qtqml-qtobject.html], the message is visible.

      If you add "QtQuick.Controls", the error goes away. Sadly this doesn't help, as qmlsc marks QtQuick.Controls as "unused import".

      Interrestingly, sometimes the message disappears for whatever reason, and QtCreator is happy with it.

      Attachments

        Issue Links

          Activity

            People

              qtqmlteam Qt Qml Team User
              cajus Cajus Pollmeier
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: