[Qt-qml] QML QtComponents examples using a strange import: Qt.labs.components.native vs com.meego

Pekka.E.Jokela at nokia.com Pekka.E.Jokela at nokia.com
Wed Jun 29 07:22:14 CEST 2011


Hi Andrea,
The "native" import is an experimental cross-platform QML module. There is also a com.nokia.symbian component set available, which shares a quite a lot of the component API (see  http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-200). Basically the Qt.labs.components.native equals com.nokia.meego in Harmattan SDK and com.nokia.symbian when installed on QtSDK. The Flicker and MusicPlayer demos uses only the common API and with the native import the same code can be run on both platforms. Like the namespace states 'labs', there is no compatibility/future promise on the module.

Hopefully this helps,
 -Pekka

Ps. there is own mailing list for QML components module: qt-components at qt.nokia.com

>-----Original Message-----
>From: qt-qml-bounces+pekka.e.jokela=nokia.com at qt.nokia.com [mailto:qt-
>qml-bounces+pekka.e.jokela=nokia.com at qt.nokia.com] On Behalf Of ext
>a.grandi at gmail.com
>Sent: 28.06.2011 19:47
>To: qt-qml at qt.nokia.com
>Subject: [Qt-qml] QML QtComponents examples using a strange import:
>Qt.labs.components.native vs com.meego
>
>Hi,
>
>I was trying to study this example for Harmattan:
>http://library.developer.nokia.com/index.jsp?topic=/MeeGo_1.2_Harmattan_
>API/html/qt-components/qt-components-example-flickr.html
>
>As you can see the import on QML files is:
>
>import QtQuick 1.0
>import Qt.labs.components.native 1.0
>
>what is that?
>
>When I create a new Harmattan in QtCreator, the import is quite different:
>
>import QtQuick 1.1
>import com.meego 1.0
>
>Which one is the right one to use? Thanks for your help!
>
>--
>Andrea Grandi - Nokia Qt Ambassador
>website: http://www.andreagrandi.it
>_______________________________________________
>Qt-qml mailing list
>Qt-qml at qt.nokia.com
>http://lists.qt.nokia.com/mailman/listinfo/qt-qml


More information about the Qt-qml mailing list