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

RoundButton QML Type

A push-button control with rounded corners that can be clicked by the user.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

RoundButton QML Type

  • Import Statement: import QtQuick.Controls

  • Inherits: Button

  • Group: RoundButton is part of qtquickcontrols-buttons

Detailed Description

Image non disponible

RoundButton is identical to Button, except that it has a radius property which allows the corners to be rounded without having to customize the background.

 
Sélectionnez
RoundButton {
    text: "\u2713" // Unicode Character 'CHECK MARK'
    onClicked: textArea.readOnly = true
}

See Also

Property Documentation

 

radius : real

This property holds the radius of the button.

To create a relatively square button that has slightly rounded corners, use a small value, such as 3.

To create a completely circular button (the default), use a value that is equal to half of the width or height of the button, and make the button's width and height identical.

To reset this property back to the default value, set its value to undefined.

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