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. How can i force the engine to call QQuickImageResponse::textureFactory.

How can i force the engine to call QQuickImageResponse::textureFactory.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlqtquickimageproviderandriod
1 Posts 1 Posters 322 Views
  • 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.
  • S Offline
    S Offline
    Sheep
    wrote on 24 Oct 2020, 05:46 last edited by
    #1

    Hello guys, im trying to implement asynchronous image loading for remote images in qml and inorder to prevent unneccessary network requests, i cache the loaded images using QCache. Images downloaded from the network are loaded and displayed successfully but for cached images, they are loaded and sometimes not loaded and yet they are still cached. i found out that QQuickImageResponse::textureFactory is not being called at some point and i don`t know why. As the documentation says, QQuickImageResponse::textureFactory is called when needed, How can i force the engine to call this function because I tried forcing the QQuickImageResponse::errorString function to return an empty string and made sure the job is completed but still no hope.
    Please help me out?
    Here is what i have done

    1 Reply Last reply
    0

    1/1

    24 Oct 2020, 05:46

    • Login

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