Re: [Qt-qml] How catch C++ signal in qml

2010-08-17 Thread bea.lam
Hi Patryk, > > When I'm trying catch this signal - tick in MyPlayer file, I get something > like: Couldn't find slot/function: myAction. But when I put myAction in > main.qml everything works fine. For now, I add to main.qml: > > function myAction(data) > { > player.myAction(data); > } > > bu

[Qt-qml] How catch C++ signal in qml

2010-08-16 Thread Patryk Górniak
Hi, I was wondering, how can I catch C++ signal in child object in qml? For example, I have something like this ( this is only draft:) ) void MyClass::MyClass() { mediaObject = new Phonon::MediaObject(); QDeclarativeView* view = new QDeclarativeView(); view->setSource(QUrl::fromLocalFile("main.qm