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

When using QML_ELEMENT inside a QObject subclass with CONFIG += qmltypes then it will not be able to open the qml in design mode

XMLWordPrintable

    • 2f320436d (14.0), 604dfa57e (14.0), 26dcf27f4 (14.0)

      When using QML_ELEMENT inside a QObject subclass with CONFIG += qmltypes then it will not be able to open the qml in design mode. If an explicit qmlRegisterType() is added then it will open fine, but it does not work without it.

      Also that Qt Creator cannot recognize the module

      .qmltypes file exists in the build directory but adding QML_IMPORT_PATH += /path/to/.qmltypes file location (both absolute and relative path) doesn't help to remove the error message.

        For Gerrit Dashboard: QTCREATORBUG-24428
        # Subject Branch Project Status CR V

            qtqmlteam Qt Qml Team User
            andysh Andy Shaw
            Votes:
            7 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes