[Qt-qml] Loading external QML files

Martin Jones martin.jones at nokia.com
Thu Jul 29 06:52:05 CEST 2010


On Wed, 28 Jul 2010 07:48:57 pm ext Ben Marinic wrote:
> Thanks Martin.  I have tried the following but get the compile error:
> QML Connections: Cannot assign to non-existent property
> "onTouchPointHit".  What have I done wrong?  Another problem I have is
> that I don't necessarily know how many child QML files I will have
> (the QML is generated by a Flex application) and therefore can't setup
> all of my connections before hand in my Player.qml file.  Is there a
> way to have a generic connection/signal which all children dispatch
> and the Player.qml handles?

In this case you are probably better off having the children call a method in 
Player.qml

> I would also need to include a value in
> my signal (a string reference to another QML file) which only the
> child knows.  I'm not sure if you can do this with signals?

signals can have parameters: http://doc.qt.nokia.com/4.7-snapshot/qml-
extending-types.html#adding-new-signals

-- 
Martin



More information about the Qt-qml mailing list