[Qt-qml] Send qml signals to cpp

Juan Felipe Mogollón Rodríguez fmogollon at vicomtech.org
Mon Jun 7 16:23:30 CEST 2010


Hi, those answer were very useful, thanks to every one.

Now I am trying to send a param (text) to the QML and get it back from
the QML, Is there any way?

Is there any good tutorial to read about QML?

Thanks in advance.

Regards.

Felipe

2010/6/1 Colin Kern <colin.kern at gmail.com>:
> 2010/5/31 Juan Felipe Mogollón Rodríguez <fmogollon at vicomtech.org>:
>> Hi to everyone,
>> I am trying to emit signals from qml to be managed with the cpp code,
>> I haven't found any tutorial or example that works.
>
> You would just use property binding to bind the QML signal handler to
> the slot of a C++ object you've exposed to QML.  See
> http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeintroduction.html#signal-handlers
> about signal handlers and
> http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html#exposing-data
> about exposing a C++ object.
>
> Colin
>




More information about the Qt-qml mailing list