[Interest] Uncheck Button in QML ButtonGroup
Bullinger, Julius
julius.bullinger at intel.com
Wed Aug 16 14:48:23 CEST 2017
From: Jérôme Godbout [mailto:jerome at bodycad.com]
Sent: Wednesday, August 16, 2017 14:32
To: Bullinger, Julius <julius.bullinger at intel.com>
Cc: interest at qt-project.org
Subject: Re: [Interest] Uncheck Button in QML ButtonGroup
> Here's what I did:
>
> function unselectAllButton()
> {
> [idButton1, idButton2, ...].forEach(function(v){ v.checked = false; });
> group.checkedButton = null;
> }
>
> I didn't test it with ButtonGroup, but only with QtQuick Controls 1 and ExclusiveGroup
> work this way (change the group.checkButton for group.current), so I guess it should
> work too.
And you can toggle the checked state when clicking on a button with that? On which trigger is this function called?
Thanks,
Julius
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170816/b01c32a7/attachment.html>
More information about the Interest
mailing list