Controls2 CheckBox onClicked overwriting checked value
Unsolved
QML and Qt Quick
-
wrote on 8 Jun 2018, 03:38 last edited by
Hey,
I have a simple CheckBox on screen, why is the value being overwritten when I click? How can I prevent the value from being hijacked from my binding?
CheckBox { text: "Value Set" checked: value !== 0 onClicked: console.log("Don't do anything!") //value++ property int value: 0 }
How can I make this not set checked to true?
-
wrote on 8 Jun 2018, 07:25 last edited by
See CheckBox::nextCheckState. The property was introduced in QtQuick.Controls 2.4 (Qt 5.11).
1/2