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

BusyIndicatorStyle QML Type

Provides custom styling for BusyIndicatorStyle.

This type was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

BusyIndicatorStyle QML Type

  • Import Statement: import QtQuick.Controls.Styles 1.4

  • Since: Qt 5.2

  • Group: BusyIndicatorStyle is part of Styling Controls

Detailed Description

You can create a busy indicator by replacing the "indicator" delegate of the BusyIndicatorStyle with a custom design.

Example:

 
Sélectionnez
BusyIndicator {
    style: BusyIndicatorStyle {
        indicator: Image {
            visible: control.running
            source: "spinner.png"
            RotationAnimator on rotation {
                running: control.running
                loops: Animation.Infinite
                duration: 2000
                from: 0 ; to: 360
            }
        }
    }
}

Property Documentation

 

[read-only] control : BusyIndicator

The BusyIndicator this style is attached to.

indicator : Component

This defines the appearance of the busy indicator.

padding group

padding.bottom : int

padding.left : int

padding.right : int

padding.top : int

This grouped property holds the top, left, right and bottom padding.

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