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. How do I prevent blitting on resize?
Qt 6.11 is out! See what's new in the release blog

How do I prevent blitting on resize?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.5k 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.
  • P Offline
    P Offline
    Philius
    wrote on last edited by
    #1

    Hi there.

    Looking at the "overpainting" OpenGL example, when I resize the window, the instructions text gets blitted in the direction of the vertical part of the resize before the widget is repainted.

    This happens with the "basicdrawing" example too.
    You can see it on the top right hand side - the contents get blitted when you shrink the window from the left.
    Then almost immediately the border is then drawn over it.

    Is there a way of telling Qt not to blit the old contents when you want to redraw the entire contents of a widget?

    I vaguely remember that on Windows there was a window flag you could set to do this.

    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