鉴于此代码,我得到:“未定义的对 'QScriptEngine::QScriptEngine() 的引用”
#include <QtScript/QScriptEngine>
...
QScriptEngine e;
/* Commented out to understand the instantiation error first
e.globalObject().setProperty("t", 123);
bool result = e.evaluate("(t>=2 && t<5) || (t<1)").toBool();
*/