QScriptEngine used for scripting applications.
To be exact - going to the dll and connects to the Win32 application.
When upgrading to version Qt4.6 problem:
- When you call QScriptEngine get this error:
QScriptEngine: Must construct a Q (Core) Application before a QScriptEngine
QScriptEngine: Must construct a Q (Core) Application before a QScriptEngine
To copy to clipboard, switch view to plain text mode
'll Show how to solve this problem??
P.S
Found diff
- JSC::initializeThreading(); // ### hmmm
+ qFatal("QScriptEngine: Must construct a Q(Core)Application before a QScriptEngine");
+ return;
+ }
+ JSC::initializeThreading();
- JSC::initializeThreading(); // ### hmmm
+ if (!QCoreApplication::instance()) {
+ qFatal("QScriptEngine: Must construct a Q(Core)Application before a QScriptEngine");
+ return;
+ }
+ JSC::initializeThreading();
To copy to clipboard, switch view to plain text mode
and BUG
http://bugreports.qt.nokia.com/browse/QTBUG-4713
I will be glad of any assistance in solving the problem
Bookmarks