Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[Solved] How to pass 'requestedSize' from QML to a QQuickImageProvider?



  • The QQuickImageProvider::requestImage function has requestedSize parameter, and I want to make a use of it. However, there is no documentation on how to set it from QML, nor I was able to find examples. Is it possible and how?

    p.s. As alternative far I am thinking to encode size into id string, something like @"image://my-provider/some-image/100x60"@



  • The sourceSize property value in Image is sent as requestedSize to QQuickImageProvider.

    Thank you for attention :)


Log in to reply