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

ApplicationWindowStyle QML Type

Provides custom styling for ApplicationWindow.

This type was introduced in Qt 5.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

ApplicationWindowStyle QML Type

  • Import Statement: import QtQuick.Controls.Styles 1.4

  • Since: Qt 5.4

  • Inherits: QtObject

  • Group: ApplicationWindowStyle is part of Styling Controls

Detailed Description

You can create a custom window background by replacing the "background" delegate of ApplicationWindowStyle with a custom design.

Example:

 
Sélectionnez
ApplicationWindow {
    style: ApplicationWindowStyle {
        background: BorderImage {
            source: "background.png"
            border { left: 20; top: 20; right: 20; bottom: 20 }
        }
    }
}

Property Documentation

 

background : Component

A custom background for the window.

The window might have a custom background color set. The custom background color is automatically filled by the window. The background delegate should respect the custom background color by either hiding itself altogether when a custom background color is set, or by letting the custom background color shine through.

The following read-only property is available within the scope of the background delegate:

styleData.hasColor : bool

Whether the window has a custom background color set.

[read-only] control : ApplicationWindow

The window attached to this style.

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