[SailfishDevel] How to check Switch state

Michael Faro-Tusino mfaro-tusino at live.com
Wed Aug 21 11:47:19 UTC 2013


Hi Dimitris,

Why not use an if function?

 ( buttonID.checked = true ? Execute function : do other function)

Hope that helps,
Michael

Sent from my BlackBerry 10 smartphone.
From: Dimitris
Sent: Wednesday, August 21, 2013 8:39 PM
To: devel at lists.sailfishos.org
Subject: [SailfishDevel] How to check Switch state


Hello,

I have a ListModel and in my delegate I display the name of each element
and next to it a Switch. Then I want to call a function which needs to
know if the Switch for each element is checked or not. How can I do this?

Regards,
Dimitris
_______________________________________________
SailfishOS.org Devel mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20130821/d3cdb682/attachment.html>


More information about the Devel mailing list