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.

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.

In this case, the compile error message becomes "PieChart is not a type".

Does somebody have an idea how to solve this ?
If this could have some kind of importance, notice I'm using Qt on MS 
Windows OS.

Thanks again & best regards,
Matthieu

Hi Matthieu,

On 21/09/2010, at 9:36 PM, ext matthieu.riot...@skf.com wrote:

> Hi all,
> 
> I have a big interest in QML but am facing an issue where I can't 
> understand what to do.
> I downloaded the latest Qt Creator snapshots and started looking at the 
> Quick examples.
> In the one named "tutorials" -> "extending", all QML files contains a 
line 
> : "import Charts 1.0" that leads to a compilation error : " module 
Charts 
> is not installed ".
> 
> But I can't solve that.
> Is this module a package that will be included later ?
> Or (regarding the title of the tutorial), is the module a C++ 'plugin' 
> that I have to compile myself ? In this case, could somebody help 
finding 


Yes, the examples in these tutorials have to be compiled and run as C++ 
applications. The QML files in these directories cannot be run standalone 
from the QML Viewer (which is the default behaviour for QML projects in Qt 
Creator). The exception to this is the Chapter 6 example, which contains a 
C++ plugin that has to be compiled before the QML file can be loaded from 
the QML Viewer.

This particular "extending" tutorial is thoroughly documented in the QML 
docs - see 
http://doc.qt.nokia.com/4.7-snapshot/qml-extending-tutorial-index.html. 
You might find this helpful for understanding the use of plugins and 
modules in the tutorial.

regards,

Bea



_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to