As long as upstream does not add proper qml codemodel support for cmake projects, we can hardly do anything about that. To get proper code completion support for projects the qmake project manager should be used.
Judging from the comments on this bug: https://bugreports.qt.io/browse/QTCREATORBUG-11328 Upstream considers QML codemodel support in cmake projects as "out of scope" ** Changed in: qtcreator-plugin-ubuntu (Ubuntu) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in Ubuntu. https://bugs.launchpad.net/bugs/1271185 Title: [QtCreator] When using cmake, there is no way to set QML_IMPORT_PATH Status in Ubuntu UI Toolkit: Invalid Status in qtcreator-plugin-ubuntu package in Ubuntu: Won't Fix Bug description: If an application develops a QML plugin which is built with the application, syntax highlighting and code completion for this can be loaded by setting QML_IMPORT_PATH (in qmake) or setting importPaths (in qmlproject). With cmake, there isn't any possibility to do so, which breaks syntax highlighting and code completion. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1271185/+subscriptions -- Mailing list: https://launchpad.net/~ubuntu-sdk-bugs Post to : ubuntu-sdk-bugs@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs More help : https://help.launchpad.net/ListHelp