<HTML><HEAD>
<STYLE id=eMClientCss>blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
.plain pre, .plain tt { font-family: monospace; font-size: 100%; font-weight: normal; font-style: normal; white-space: pre-wrap; }
a img { border: 0px; }body {font-family: Tahoma;font-size: 12pt;}
.plain pre, .plain tt {font-family: Tahoma;font-size: 12pt;}
</STYLE>
<STYLE></STYLE>
</HEAD>
<BODY scroll=auto class>
<DIV>Hello!</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV><A href="http://doc.qt.io/qt-5/qtqml-cppintegration-definetypes.html">http://doc.qt.io/qt-5/qtqml-cppintegration-definetypes.html</A></DIV>
<DIV><A href="http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html">http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html</A></DIV>
<DIV> </DIV>
<DIV>------ Исходное сообщение ------</DIV>
<DIV>От: "Dylan Van Assche" <<A href="mailto:dylan.rscafan@gmail.com">dylan.rscafan@gmail.com</A>></DIV>
<DIV>Кому: "Sailfish OS Developers" <<A href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</A>></DIV>
<DIV>Отправлено: 14.09.2015 13:05:50</DIV>
<DIV>Тема: [SailfishDevel] QML switch connecting to a C++ function</DIV>
<DIV> </DIV>
<DIV id=x346b7ba3bbc54524a1c77a3147f4b8de>
<BLOCKQUOTE class=cite2 cite=CAC8-0_WJhimoh7BTWBPk8P4GPbSr+dVtp+Z1VfKZbhb9TjQoSg@mail.gmail.com type="cite">
<DIV dir=ltr>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>Hi devel-Sailors,<BR><BR></DIV>I have read a lot of tutorials about exposing data from C++ to QML and the other way.<BR></DIV>
<DIV>Even source code from I2CTools which has the component that I need: enable and disable VDD.<BR></DIV>However, I still don't understand how to connect a simple switch to a C++ function. I <SPAN>no longer see the wood for the trees.</SPAN><BR><BR></DIV>Can somebody assist me here?<I><B><BR><BR></B></I></DIV>Cheers,<BR></DIV>Dylan<BR>
<DIV>
<DIV><BR>
<DIV>
<DIV><I><B><BR></B></I></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV></BODY></HTML>