Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Does QPainter tries to paint anything outside the size of paint device?

Does QPainter tries to paint anything outside the size of paint device?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qpainterqimage
2 Posts 2 Posters 449 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.
  • C Offline
    C Offline
    CJha
    wrote on 27 Oct 2020, 15:32 last edited by CJha
    #1

    Hi, I am working on an algorithm for a line plot. I am drawing the line plot on a QImage. Due to zooming and scrolling the points to be drawn can be way outside of QImage boundary (sometimes by a factor of 10s of thousands). So, my question is, will QPainter waste any resource/computation time in trying to draw the points that lie outside of QImage? If yes, then while computing I will try to limit any point that lies outside of QImage, but if it doesn't waste any resource/computation time in drawing anything outside the boundary of QImage then I will not bother and save my computation time in limiting the point that lies outside the QImage boundary.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kent-Dorfman
      wrote on 31 Oct 2020, 05:21 last edited by
      #2

      so write a test program, meter the performance of canvas writes vs out-of-bounds writes, and report back.

      1 Reply Last reply
      0

      2/2

      31 Oct 2020, 05:21

      • Login

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