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. Extend QML AnimatedImage in cpp? Or use a model?
Qt 6.11 is out! See what's new in the release blog

Extend QML AnimatedImage in cpp? Or use a model?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 147 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.
  • G Offline
    G Offline
    Gibbz
    wrote on last edited by
    #1

    Im building myself a little weather app in qml. I have currently an animated radar image, however it has poor performance in my app, causing the scroll to stutter.

    Source code on github:
    https://github.com/bit-shift-io/qweather/blob/master/src/radarimage.h
    https://github.com/bit-shift-io/qweather/blob/master/src/radarimage.cpp

    I'm rendering a small new image in the paint() function every 300ms.

    I am not yet caching the rendered images as I'm not sure this will improve performance over another method.
    Is there a better way to go about doing this such as extending AnimatedImage, or somehow using a model with animated image, or adding threading?

    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