PDA

View Full Version : Core C++ and QML App



west
16th April 2014, 13:07
Hello,
is it possible to create hybrid: C++ & QML application without any GUI dependency?
I would like to write a service with some parts of logic written in script language and I prefer QML than QtScript.

anda_skoa
16th April 2014, 14:11
With Qt5 yes.

The QML Engine and other related non-UI parts are now in the QQml module.

In Qt4 both QML and QtQuick (the UI pieces) are part of a single module (QtDeclarative) and do at least have build time dependencies on UI.
It might be possible to run a QDeclarativeEngine in a QCoreApplication based app, but you'd have to try yourself.

Cheers,
_