IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Switch QML Type

A switch.

This type was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Switch QML Type▲

  • Import Statement: import QtQuick.Controls 1.4

  • Since: Qt 5.2

  • Inherits: FocusScope

  • Group: Switch is part of https://

Detailed Description▲

Image non disponible

A Switch is a toggle button that can be switched on (checked) or off (unchecked). Switches are typically used to represent features in an application that can be enabled or disabled without affecting others.

On mobile platforms, switches are commonly used to enable or disable features.

 
Sélectionnez
Column {
    Switch { checked: true }
    Switch { checked: false }
}

You can create a custom appearance for a Switch by assigning a https://.

Property Documentation▲

 

activeFocusOnPress : bool▲

This property is true if the control takes the focus when it is pressed; https://() will be called on the control.

checked : bool▲

This property is true if the control is checked. The default value is false.

exclusiveGroup : ExclusiveGroup▲

This property stores the https:// that the control belongs to.

[read-only, since QtQuick.Controls 1.3] pressed : bool▲

This property is true when the control is pressed.

This property was introduced in QtQuick.Controls 1.3.

style : Component▲

The style Component for this control.

See Also▲

See also Qt Quick Controls Styles QML Types

Signal Documentation▲

 

[since QtQuick.Controls 1.3] clicked()▲

This signal is emitted when the control is clicked.

The corresponding handler is onClicked.

This signal was introduced in QtQuick.Controls 1.3.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+   

Ce document est disponible sous la licence https:// telle que publiée par la Free Software Foundation.