Qt 6.11 is out! See what's new in the release
blog
Controls2 CheckBox onClicked overwriting checked value
-
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?
-
See CheckBox::nextCheckState. The property was introduced in QtQuick.Controls 2.4 (Qt 5.11).