I can compile the qtscriptgenerator fine, but I am not able to import any of the extensions used.
I use:
qApp->addLibraryPath(path_toplugins); //I have added lots of different paths at the same time, the script folder/plugins folder etc. just to be sure
QScriptEngine *engine = new QScriptEngine(this);
QString libpaths = qApp->libraryPaths().join("\n");
qDebug()<<libpaths; //prints the paths I set
QString exts = engine->availableExtensions().join("\n");
qDebug()<<exts; // empty!!!!!!!!!!!!!!!!
QScriptValue tmp = engine->importExtension("qt.core"); // error: unable to import qt.core: no such extension
I`m using windows xp and Qt 4.6.3, mingw
Any ideas?
Bookmarks