diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-25 10:04:58 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-25 18:33:23 +0000 |
commit | 52a9df75097ed409eca5a57727244d88419f1dcc (patch) | |
tree | f5e698a8d9e220c2c75a6b78c9af8d8515087674 /src/imports/templates/plugins.qmltypes | |
parent | 718f6def0b2c4d84bdc8ebdc9633697885747feb (diff) |
Add ApplicationWindow::background
Convenient for setting a stylish background that covers the whole
window, that is, goes below the header and footer. The same already
works with Page, since it inherits Control.
import QtQuick 2.6
import Qt.labs.controls 1.0
ApplicationWindow {
visible: true
width: 400; height: 400
header: ToolBar { opacity: 0.5 }
footer: ToolBar { opacity: 0.5 }
background: Rectangle {
gradient: Gradient {
GradientStop { position: 0.0; color: "lightsalmon" }
GradientStop { position: 1.0; color: "salmon" }
}
}
}
Change-Id: I57219779913c178cacfe4cbc4bf3a524b213d2c0
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/templates/plugins.qmltypes')
-rw-r--r-- | src/imports/templates/plugins.qmltypes | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/templates/plugins.qmltypes b/src/imports/templates/plugins.qmltypes index d194f28d..229a194e 100644 --- a/src/imports/templates/plugins.qmltypes +++ b/src/imports/templates/plugins.qmltypes @@ -37,6 +37,7 @@ Module { exports: ["Qt.labs.templates/ApplicationWindow 1.0"] exportMetaObjectRevisions: [0] attachedType: "QQuickApplicationWindowAttached" + Property { name: "background"; type: "QQuickItem"; isPointer: true } Property { name: "contentItem"; type: "QQuickItem"; isReadonly: true; isPointer: true } Property { name: "data"; type: "QObject"; isList: true; isReadonly: true } Property { name: "activeFocusControl"; type: "QQuickItem"; isReadonly: true; isPointer: true } |