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. QQuickPaintedItem does not retain previously-drawn QImage sections

QQuickPaintedItem does not retain previously-drawn QImage sections

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

    I am implementing a custom QQuickPaintedItem within a Flickable. Initially, only the visible section of the image is painted (via painter->drawImage). As the item is flicked and new sections come into view, those get drawn as well. By the time the entirety of the item has been browsed, all parts have been drawn. However, if I now flick back to the start of the image, it stays blank unless I redraw it in my paint() routine (which results in a discernible paint delay).

    Based on the documentation, I would expect that once all sub-parts of the texture have been drawn, any further browsing within the Flickable should not require any re-painting. I have explicitly set the renderTarget to QQuickPaintedItem::Image and textureSize to the size of the item.

    Any ideas as to why this might happen?

    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