Unsolved Button fokus onPress
-
Hello,
I want my button to change its appearance when pressed. Like a focus. How would the syntax look ? The following wouldn't work:
Button { id: button1 x: 40 y: 103 width: 120 height: 70 text: qsTr("1") MouseArea { onPressed: {activeFocusOnPress = true} } }
-
Maybe this works.
Button { id: button1 x: 40 y: 103 width: 120 height: 70 text: qsTr("1") activeFocusOnPress :true }