Well, it is true the Page1 is not a published component.  Unless you have 
defined this, it won't work. You may have seen code that looks like in the 
widgetgallery, but the gallery defines this as an application-specicif 
component. 
[Sent from my phone]

----- Original Message -----
From: [email protected] [mailto:[email protected]]
Sent: Saturday, May 28, 2011 10:10 AM
To: Martin Grimme <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] 
<[email protected]>
Subject: Re: [Qt-qml] [MeeGo-SDK] Cannot run applications that use MeeGo UX     
Components

Hi,

On 28 May 2011 18:50, Martin Grimme <[email protected]> wrote:
> Hi,
>
> try to import MeeGo.Components 0.1
>
> This works on the tablet. 0.2 may be too fresh. Still you get it all
> red-underlined in Qt Creator. This will get even worse if you do your
> own custom QML components that reside in .so files. However you can
> compile it and deploy on the device.

first of all let me say that I'm not using the tablet with the image
it was provided with, I've installed one of the latest builds
available from meego website.
Second thing, when I installed meego-components on tablet, 0.2.8...
version was installed.

Anyway, using "import MeeGo.Components 0.1" does not say that
components are not installed, but it doesn't work anyway.
I get this error:

Killing remote process(es)...
Starting remote process ...
access control disabled, clients can connect from any host
Adding Master Pointer: Virtual core pointer ( 2 )
Skipping non-Touch device: Virtual core XTEST pointer ( 4 )
Adding ATTACHED touch device: eGalax Inc. USB TouchController ( 9 )
void MInputContext::connectToDBus()
MInputContext void GlibDBusIMServerProxy::connectToDBus()
Object::connect: No such signal
QApplication::windowListUpdated(QList<WindowInfo>)
Object::connect:  (sender name:   'MeeGoTest2')
file:///usr/local/share/MeeGoTest2/qml/MeeGoTest2/main.qml:27:37:
Page1 is not a type
         Component { id: book1Component; Page1 {} }
                                         ^

Here is the source code of QML file:

import QtQuick 1.0
import MeeGo.Components 0.1

Window {
    id: window

    toolBarTitle: "Book menu test"

    bookMenuModel: [ qsTr("Book1"), qsTr("Book2") ]
    bookMenuPayload: [ book1Component, book2Component ]

    Component { id: book1Component; Page1 {} }
    Component { id: book2Component; Page2 {} }

    Component.onCompleted: {
        switchBook( book1Component )
    }
}

What am I missing?

Thanks for your help :)

-- 
Andrea Grandi - Nokia Qt Ambassador
website: http://www.andreagrandi.it
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to