From 5aaed8fafeeefdc645efd45e875dd90f238609ca Mon Sep 17 00:00:00 2001 From: nesnomis Date: Sun, 1 Jun 2025 12:05:36 +0200 Subject: [PATCH] Image management (QML image errors unavoidable) --- qml/delegates/RadioImage.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qml/delegates/RadioImage.qml b/qml/delegates/RadioImage.qml index aea0d29..59e5e97 100644 --- a/qml/delegates/RadioImage.qml +++ b/qml/delegates/RadioImage.qml @@ -4,7 +4,7 @@ import QtGraphicalEffects 1.0 //import "../../helpers/jsFunctions.js" as JS Column { - property string stationImage: "" //stationImage + property string stationImage: "../images/community.png" //stationImage property string stationLabel: "" //imagelabel property bool flag: false property string flagimage: "" //flagimage @@ -33,7 +33,7 @@ Column { anchors.centerIn: parent fillMode: Image.PreserveAspectFit visible: false - source: stationImage ? Qt.resolvedUrl(stationImage) : ""// ? stationImage : stationimage.visible = false + source: stationImage ? Qt.resolvedUrl(stationImage) : "../images/community.png"// ? stationImage : stationimage.visible = false /* BusyIndicator { size: BusyIndicatorSize.Medium @@ -45,6 +45,7 @@ Column { case Image.Null: loading = false visible = false + stationImage = "../images/community.png" break; case Image.Ready: loading = false @@ -56,10 +57,12 @@ Column { case Image.Error: loading = false visible = false + stationImage = "../images/community.png" break; default: loading = false visible = false + stationImage = "../images/community.png" } } Label {