Solved How to include QScriptEngine?
-
I'm having trouble trying to add the QScript module to a project I've created in QtCreator. I've added the script module to my .pro file:
QT += script xml
However, this gives me the error
Project ERROR: Unknown module(s) in QT: script
.Including any classes from this module is also causing a file not found error:
#include <QScriptEngine>
How do I set up my project to be able to use the JavaScript module?
-
Hi
Its a separate module so needs to be selected to be installed -
Thanks. Would you know why it's deprecated? It seems pretty useful to me. Is there a more up to date replacement for it?
-
@kitfox
Its old and due to changes in used tech,
it was a burden to make it use new versions of that tech.The replacement is
http://doc.qt.io/qt-5/qjsengine.htmlBut its not a 1 to 1 replacement.