[SailfishDevel] QML switch connecting to a C++ function

Andrey Kozhevnikov coderusinbox at gmail.com
Mon Sep 14 08:33:09 UTC 2015


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.rscafan at gmail.com>
Кому: "Sailfish OS Developers" <devel at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150914/1fbcffea/attachment.html>


More information about the Devel mailing list