You are not logged in.

1

Thursday, April 27th 2017, 9:59am

NetBeans and QtQml

I'd like to use the QJSEngine in a Netbeans C++/Qt project (Qt 5.8 and Netbeans 8.2), thus QtQml needs to be included in the project. I found the list of Qt modules under <right click Project>->Properties->Qt. Unfortunately, QtQml is missing from that list (among several others, in fact that list covers only about half of the Qt modules). I successfully used QtXml, which was present on the list. I'm pretty sure that my Qt installation includes QtQml, since I can successfully use QJSEngine from a QtCreator project. How can I add it to the Netbeans modules list?

2

Saturday, April 29th 2017, 12:44pm

I found the answer:

Project Properties -> Build -> Qt, below the module list under "Custom Definitions" add QT += "qml"

The quotes are important, as is the proper module name (which can differ from what it's called elsewhere).

Similar threads

Used tags

Netbeans, QtQml