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

QtObject and Component not recognized properly

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes