Browse Source

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.
pull/188/head
Fatih Uzunoglu 7 months ago
committed by Steve Lhomme
parent
commit
75c368c2e7
  1. 3
      modules/gui/qt/widgets/qml/ImageExt.qml

3
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

Loading…
Cancel
Save