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:
Qt Code:
  1. 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

Qt Code:
  1. - JSC::initializeThreading(); // ### hmmm
  2. + if (!QCoreApplication::instance()) {
  3. + qFatal("QScriptEngine: Must construct a Q(Core)Application before a QScriptEngine");
  4. + return;
  5. + }
  6. + 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