Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] How to pass 'requestedSize' from QML to a QQuickImageProvider?
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eliseev
    wrote on last edited by
    #1

    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"@

    1 Reply Last reply
    0
    • E Offline
      E Offline
      eliseev
      wrote on last edited by
      #2

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

      Thank you for attention :)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved