From 75c368c2e7c8fe3c5a093c2aa556ebf800ee0b39 Mon Sep 17 00:00:00 2001 From: Fatih Uzunoglu Date: Tue, 23 Sep 2025 18:14:12 +0300 Subject: [PATCH] qml: make the visual visible when image reports readiness in `ImageExt` If a texture provider does not provide a texture, a black texture is generated and used instead. This behavior makes it not consistent with `Image`, where it would not show anything. --- modules/gui/qt/widgets/qml/ImageExt.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt/widgets/qml/ImageExt.qml b/modules/gui/qt/widgets/qml/ImageExt.qml index 8a1a94be10..49b69fb5d1 100644 --- a/modules/gui/qt/widgets/qml/ImageExt.qml +++ b/modules/gui/qt/widgets/qml/ImageExt.qml @@ -158,7 +158,8 @@ Item { visible: readyForVisibility - readonly property bool readyForVisibility: (GraphicsInfo.shaderType === GraphicsInfo.RhiShader) && + readonly property bool readyForVisibility: (image.status === Image.Ready) /* TODO: investigate using TextureProviderObserver::isValid instead */ && + (GraphicsInfo.shaderType === GraphicsInfo.RhiShader) && (root.radius > 0.0 || root.borderWidth > 0 || backgroundColor.a > 0.0 || root.fillMode === Image.PreserveAspectCrop) smooth: root.smooth