[Qt-qml] QML Quick examples : "Charts 1.0 module" : how this works?
Matthieu.Rioteau at skf.com
Matthieu.Rioteau at skf.com
Thu Sep 23 12:09:15 CEST 2010
Hi,
I finally succeed in making "chapter6" to run. The solution was simple but
not obvious.
Actually, to run .qml files, Qt Creator uses an appli called
"qmlobserver.exe", that seems to not deal with plugins very well.
I changed the QML appli and take the one called "qmlviewer.exe" that is
inside Qt SDK, and everything works fine now.
So a new question has come up. What are the differences between
qmlobserver and qmlviewer (especially in terms of features) ?
Could somebody give details on that ?
Thanks in advance, and anyway thanks a lot for already very helpful
answers ! ;-)
Matthieu
On 22/09/2010, at 5:44 PM, ext Matthieu.Rioteau at skf.com wrote:
> Thanks for useful link and advice.
>
> But as you well anticipated, I'm now unable to make the chapter 6 to
run.
> :-)
> With the files as they are delivered, I've got the now usual message
> "module Charts is not installed"
> I had a look at the "app.qml" and "qmldir" files but everything's seems
to
> be ok.
>
The Chapter 6 project is a C++ plugin rather than an application.
To run the example, you'll need to build the C++ plugin first, and then
open app.qml with the QMLViewer application.
If you are using Qt Creator, I'm not sure how it handles a project with
mixed plugin & QML files, but you should be able to at least use it for
the first step of building the C++ plugin, if you import it as a project.
> In the "app.qml" file, I tried to replace the line :
> - import Charts 1.0
> By the following
> - import "lib"
> So that it will include the "lib" folder where the plugin is.
>
I'm not sure what you mean here. The chapter6-plugins/app.qml file does
not contain an "import Charts 1.0" line, and it shouldn't have one, since
the qmldir file is in the same directory. The projects for the other
chapters do contain this line, because they are C++ application projects
rather than plugins.
regards,
Bea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100923/931cd32e/attachment.html
More information about the Qt-qml
mailing list