MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QML Switch Element

Component for On/Off selection More...

Inherits Item

This element was introduced in qt-components 4.7.

Properties

Detailed Description

The Switch component is similar to the CheckBox component but instead of selecting items it is used to setting options to On/Off.

 Switch {
     id: switch
     checked: true
 }

Property Documentation

checked : bool

Property default is false.

The checked state of switch.


platformStyle : Style

Platform specific property to set the style of the Switch.

See also SwitchStyle.