Hello!
You need to read following links. If you have any future problems please
ask it with including your source code, which don't work properly.
http://doc.qt.io/qt-5/qtqml-cppintegration-definetypes.html
http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html
------ Исходное сообщение ------
От: "Dylan Van Assche" <dylan.rsca...@gmail.com>
Кому: "Sailfish OS Developers" <devel@lists.sailfishos.org>
Отправлено: 14.09.2015 13:05:50
Тема: [SailfishDevel] QML switch connecting to a C++ function
Hi devel-Sailors,
I have read a lot of tutorials about exposing data from C++ to QML and
the other way.
Even source code from I2CTools which has the component that I need:
enable and disable VDD.
However, I still don't understand how to connect a simple switch to a
C++ function. I no longer see the wood for the trees.
Can somebody assist me here?
Cheers,
Dylan
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org