
Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!
Provides custom styling for Button. More...
Import Statement: | import QtQuick.Controls.Styles 1.4 |
Since: | Qt 5.1 |
You can create a custom button by replacing the "background" delegate of the ButtonStyle with a custom design.
Example:
Button { text: "A button" style: ButtonStyle { background: Rectangle { implicitWidth: 100 implicitHeight: 25 border.width: control.activeFocus ? 2 : 1 border.color: "#888" radius: 4 gradient: Gradient { GradientStop { position: 0 ; color: control.pressed ? "#ccc" : "#eee" } GradientStop { position: 1 ; color: control.pressed ? "#aaa" : "#ccc" } } } } }
If you need a custom label, you can replace the label item.
background : Component |
This defines the background of the button.
label : Component |
This defines the label of the button.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: