[Qt-qml] Multiple qml files in one .cpp
Artur Souza (MoRpHeUz)
artur.souza at openbossa.org
Fri Aug 27 16:10:59 CEST 2010
On Fri, Aug 27, 2010 at 9:33 AM, Sulamita Garcia <sulamita at gmail.com> wrote:
> I know, it's hard to believe, isn't?
I believe :P
> [sulamita at atomina samegame]$ pwd
> /home/sulamita/src/samegame
> [sulamita at atomina samegame]$ ls *.qml
> Block.qml Button.qml samegame.qml
> [sulamita at atomina samegame]$ ./samegame
> file:samegame.qml:29:3: Button is not a type
> Button {
> ^
>
> Maybe I should do a printscreen, everybody asks the the same question...
Try adding the import path with:
view.engine()->addImportPath( QCoreApplication::applicationFilePath() );
Maybe this should solve your issue?
Cheers,
--
-------------------------------------------------------
Artur Duque de Souza
openBossa
INdT - Instituto Nokia de Tecnologia
-------------------------------------------------------
Blog: http://blog.morpheuz.cc
PGP: 0xDBEEAAC3 @ wwwkeys.pgp.net
-------------------------------------------------------
More information about the Qt-qml
mailing list