From f0fffd1dde35fac1d9e6b78519ffeeb831f533a0 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Fri, 25 Aug 2017 18:15:58 +0200 Subject: [PATCH] Show logo in QtQuick Controls 2 style --- demo/demo-qtquick2.qml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/demo/demo-qtquick2.qml b/demo/demo-qtquick2.qml index dca6ecd..080d332 100644 --- a/demo/demo-qtquick2.qml +++ b/demo/demo-qtquick2.qml @@ -22,16 +22,21 @@ ApplicationWindow { anchors.top: bar.bottom anchors.bottom: parent.bottom currentIndex: bar.currentIndex - ComboBox { - currentIndex: qtquickIndex - model: styles - textRole: "display" - onCurrentIndexChanged: { - if (currentIndex != qtquickIndex) { - widgets.currentIndex = currentIndex; - application.close(); + ColumnLayout { + ComboBox { + currentIndex: qtquickIndex + model: styles + textRole: "display" + onCurrentIndexChanged: { + if (currentIndex != qtquickIndex) { + widgets.currentIndex = currentIndex; + application.close(); + } } } + Image { + source: "logo.svg" + } } RowLayout { TextField {