Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 513255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:24:13+00:00 2026-05-13T07:24:13+00:00

During a paint event, How can I reuse previous paintings so that I can

  • 0

During a paint event, How can I reuse previous paintings so that I can just paint on top of the previous result. Right now the whole rendering area needs repainting.

gonna try QPixmap.

Do I absolutely need to use update?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:24:13+00:00Added an answer on May 13, 2026 at 7:24 am

    You want to cache the painting in a QImage or QPixmap (probably a QPixmap). If you do this a lot, you might also want to look at QPixmapCache.

    Additionally, a lot of drawing can be calculated beforehand, then fairly quickly done using QPainterPaths. I will often use them and recalculate when necessary, rather than caching the whole paint event in a pixmap.

    Edit:

    I also ran into a brief mention of QPicture, which might also be something you want to look at:

    The QPicture class is a paint device that records and replays QPainter commands.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I create a loading screen that can be reused at any given
Can anyone point me to the documentation of the html Event object? Bonus Reading
Well I am having two issues that i can't get to work, related to
Hopefully someone can help me to look in the right direction for a solution
I have a set of data that has been displayed as just a simple
From the docs : connectionStateChange.addListener This event will also be fired once during app
At a certain point, during the running of my app, I want Castle.Windsor to
We have a memory overwrite problem. At some point, during the course of our
During the installation of my app, I want to create a PostgreSQL-Database and some
During compilation process many errors are thrown on the screen. To start resolving them

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.