A simple button component More...
Import Statement: | import quey.ui 0.1 |
Inherits: |
import QtQuick 2.4 import quey.ui 0.1 ApplicationView { width: Units.dp(640) height: Units.dp(480) Column { anchors.fill: parent anchors.margins: Style.spacing spacing: Style.spacing Button { text: "Regular" onClicked: { console.log("Keep calm - keep coding :)") } } Button { text: "Warning" color: Style.palette.warning } Button { text: "Success" color: Style.palette.success } } }
The button's text. The button is automatically expanded based on the length of the text. To supress this behaivour assign a value to width
.