From 7a872157e1b3d29cee7ae86b2eed83f9250efe68 Mon Sep 17 00:00:00 2001 From: Tadao Tanikawa Date: Fri, 3 Aug 2018 09:55:22 +0000 Subject: Fix streched background Fix side effect by improving multi-resolution support. Bug-AGL: SPEC-1611 Change-Id: I697f6be3230f73a913fb1e605f67a23395921fb9 Signed-off-by: Tadao Tanikawa --- imports/qtquickcontrols2aglstyle/ApplicationWindow.qml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/imports/qtquickcontrols2aglstyle/ApplicationWindow.qml b/imports/qtquickcontrols2aglstyle/ApplicationWindow.qml index 6ea9645..923d304 100644 --- a/imports/qtquickcontrols2aglstyle/ApplicationWindow.qml +++ b/imports/qtquickcontrols2aglstyle/ApplicationWindow.qml @@ -20,17 +20,20 @@ import QtQuick.Templates 2.0 as T T.ApplicationWindow { id: root - width: 1080 - height: 1920 - 218 - 215 + //width: 1080 + //height: 1920 - 218 - 215 visible: true flags: Qt.FramelessWindowHint font.family: 'Robota' background: Image { - anchors.fill: parent - anchors.topMargin: -218 - anchors.bottomMargin: -215 + anchors { + fill: parent + centerIn: parent + } + //anchors.topMargin: -218 + //anchors.bottomMargin: -215 source: './images/AGL_HMI_Blue_Background_NoCar-01.png' } } -- cgit 1.2.3-korg