[Qt-qml] Plugin example [was: Re: A simple, complete example of QML onvoking C++?]

Alain FLORET afloret at corys.fr
Fri Apr 16 14:24:24 CEST 2010


Ok thanks Matthias,

Just one last thing is in qt declarative plugins example, it declared 
uri = "com.nokia.TimeExample" so in "ImportPath" what must have specify 
and what must be in "qmldir" file ?

Thanks !!!

FLORET Alain
Developer
CORYS TESS
E-mail : afloret at corys.fr
--


Le 16/04/2010 13:53, Matthias Ettrich a écrit :
> If you don't get debug output on windows, why not run qml.exe in a debugger to
> see the debug output? After all that's what stderr is for :)
>
>
> A standalone application is easy, just create a small wrapper application like
> this:
>
>
> --------------------------------
> #include<QApplication>
> #include<QDeclarativeView>
> #include<QDeclarativeEngine>
>
> int main(int argc, char *argv[])
> {
>      QApplication application(argc, argv);
>      QDeclarativeView view;
>
> 	// this is the equivalent of passing -I . to the qml runtime
>      view.engine()->addImportPath(QApplication::applicationDirPath());
>
>      view.setSource("plugins.qml"));
>      view.show();
>      return application.exec();
> }
> --------------------------------
>
>
>   Matthias
>
>
> On Friday 16 April 2010 11:46:16 ext Alain FLORET wrote:
>    
>> I'm on the master branch and nothing run on my machine when i execute
>> this command !!!
>>
>> How can i use whitout "qml.exe" but into my own application ?
>>
>> Thanks.
>>
>> FLORET Alain
>> Developer
>> CORYS TESS
>> E-mail : afloret at corys.fr
>> --
>>      
>
>    



More information about the Qt-qml mailing list