Button¶
- component fbx.ui.control.Button¶
Button with no focus¶
Button { text: "OK" onPressed: console.log("Hello, world !") }
Button is a clickable widget.
- property text¶
Text string printed on the button.
Button with active focus. If user presses “Enter”, button will be activated.¶
- property pressed¶
Whether button is currently pressed, either by a mouse or a keyboard press.
- property enabled¶
Whether button accepts user interaction. If this is set to false, the button appears grayed-out and does not react on hovering.
Non-enabled button.¶
- signal clicked()¶
Signal raised when the button gets clicked, either with a mouse or with keyboard.