[Qt-qml] Send qml signals to cpp
Colin Kern
colin.kern at gmail.com
Tue Jun 1 20:24:26 CEST 2010
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