Take the 2-minute tour ×

I'm not sure if libQtDeclarative.a is required for QML. Is it? If not, what is it for exactly?

share|improve this question
add comment

1 Answer

Apparently it is. From the documentation:

QML documents are loaded and executed by the QML runtime. This includes the Declarative UI engine along with the built-in QML elements and plugin modules, and it also provides access to third-party QML elements and modules.

Applications that use QML need to invoke the QML runtime in order to execute QML documents. This can be done by creating a QDeclarativeView or a QDeclarativeEngine, as described below. In addition, the Declarative UI package includes the Qt QML Viewer tool, which loads .qml files. This tool is useful for developing and testing QML code without the need to write a C++ application to load the QML runtime.

On my Qt build (Windows), using Dependency Walker, you can see that QDeclarativeView and QDeclarativeEngine (and others) are defined in this library.

More information about this module can be found here.

share|improve this answer
add comment

Your Answer


