From d30adb496f8c0b8814c2514223eef9a555b7dbd8 Mon Sep 17 00:00:00 2001 From: cmclark00 Date: Sat, 12 Oct 2024 20:05:19 -0400 Subject: [PATCH] dsdf --- src/main.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main.qml b/src/main.qml index f9546c6..986dd13 100644 --- a/src/main.qml +++ b/src/main.qml @@ -62,19 +62,18 @@ ApplicationWindow { Rectangle { id: logoContainer - implicitHeight: window.height/4 + width: parent.width + height: window.height / 4 // Set explicit height based on the window Image { id: image source: "icons/logo_sxs_imager.png" - - // Specify the maximum size of the image - width: parent.width - height: parent.height - anchors.fill: parent + anchors.fill: parent // This will make the image fill the parent completely + fillMode: Image.PreserveAspectFit // Maintain the aspect ratio of the image } } + Rectangle { color: backgroundColor implicitWidth: window.width