[Qt-interest] QTest and QScript
ivan demakov
ivan.demakov at gmail.com
Wed Aug 25 12:57:41 CEST 2010
On Wednesday 25 of August 2010 12:33:46 Rohan McGovern wrote:
> ivan demakov said:
> > I get the following messages from test application (windows version):
> >
> > Config: Using QTest library 4.6.3, Qt 4.6.3
> > QScriptEngine: Must construct a Q(Core)Application before a QScriptEngine
> >
> > Hmm, QAplication really need to use QScriptEngine?
>
> No, the other way around, QScriptEngine needs to use a
> Q(Core)Application.
>
Yes, i mean this.
> > And anyway my main function looks like this:
> >
> > QTEST_MAIN(Test1)
>
> Nothing wrong with that.
>
> Maybe you have a QScriptEngine somewhere which is being statically
> initialized (i.e. constructed before main()) ?
>
No.
I initialize QScriptEngine in "void Test1::initTestCase()".
And linux version of my test works good.
But windows version does not.
--
ivan
More information about the Qt-interest-old
mailing list