ApplicationWindowStyle QML Type

Provides custom styling for ApplicationWindow More...

Import Statement: import QtQuick.Controls.Styles 1.4
Since: Qt 5.4
Inherits:

QtObject

Properties

Detailed Description

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

Example:

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.

Note: 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 : boolWhether the window has a custom background color set.

[read-only] control : ApplicationWindow

The window attached to this style.


© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.