Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- import QtQuick.Controls 2.2
- ApplicationWindow {
- id: window
- title: "Stack"
- visible: true
- width: 300
- CheckBox {
- }
- }
- import QtQuick 2.0
- import QtQuick.Controls 2.2
- ApplicationWindow {
- id: window
- title: "Stack"
- visible: true
- width: 300
- CheckBox {
- id: control
- indicator: Rectangle {
- implicitWidth: 26
- implicitHeight: 26
- x: control.leftPadding
- y: parent.height / 2 - height / 2
- radius: 3
- border.color: control.down ? "#17a81a" : "#21be2b"
- Text {
- width: 14
- height: 14
- x: 1
- y: -2
- text: "✔"
- font.pointSize: 18
- color: control.down ? "#17a81a" : "#21be2b"
- visible: control.checked
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement