PDA

View Full Version : QScriptEngine in Qt 4.6.0



Fastman
25th December 2009, 22:00
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
'll Show how to solve this problem??

P.S
Found diff


- JSC::initializeThreading(); // ### hmmm
+ if (!QCoreApplication::instance()) {
+ qFatal("QScriptEngine: Must construct a Q(Core)Application before a QScriptEngine");
+ return;
+ }
+ JSC::initializeThreading();

and BUG
http://bugreports.qt.nokia.com/browse/QTBUG-4713
I will be glad of any assistance in solving the problem