From: Jérôme Godbout [mailto:[email protected]]
Sent: Wednesday, August 16, 2017 14:32
To: Bullinger, Julius <[email protected]>
Cc: [email protected]
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
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest