CheckBox QML Type

A checkbox component More...

Import Statement: import quey.ui 0.1
Inherits:

Item

Properties

Signals

Detailed Description

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

        CheckBox {
            id: checkbox
            text: "Activity indicator"
        }

        ActivityIndicator {
            running: checkbox.checked
            color: Style.palette.success
        }

    }
}

Property Documentation

checked : bool

This property is true if the checkbox is checked.


color : color

The checkbox' color. Defaults to Style.palette.regular.


hovered : bool

This property is true when the mouse pointer hovers the checkbox.


pressed : bool

This property is true when the left mouse button is pressed down over the checkbox.


text : string

The text to be displayed next to the checkbox.


Signal Documentation

clicked()

This signal gets triggered when the checkbox was clicked.