From 0f8d1f1e440c518c24a3ea6cc24649c7cd39f75f Mon Sep 17 00:00:00 2001 From: cmclark00 Date: Sat, 12 Oct 2024 20:12:29 -0400 Subject: [PATCH] sdfsdf --- src/main.qml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main.qml b/src/main.qml index 986dd13..647a248 100644 --- a/src/main.qml +++ b/src/main.qml @@ -62,17 +62,22 @@ ApplicationWindow { Rectangle { id: logoContainer - width: parent.width - height: window.height / 4 // Set explicit height based on the window + implicitHeight: window.height/4 Image { id: image source: "icons/logo_sxs_imager.png" - anchors.fill: parent // This will make the image fill the parent completely - fillMode: Image.PreserveAspectFit // Maintain the aspect ratio of the image + anchors.fill: parent + fillMode: Image.PreserveAspectFit + + onStatusChanged: { + if (status == Image.Error) { + console.log("Failed to load image:", source) + } + } } - } + } Rectangle { color: backgroundColor