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

Details

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes