Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Repaint child without repainting parent widget

Repaint child without repainting parent widget

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.4k 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.
  • T Offline
    T Offline
    Tsweti
    wrote on last edited by
    #1

    I have a parent widget ( QScrollArea ) to which I setWidget my custom QFrame containing some buttons. The QScrollArea has background set with stylesheet and my widget has transparent background. I want to make the QScrollArea not redraw its background each time my widget is moved because this slows down performance very much.

    What can I do?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tsweti
      wrote on last edited by
      #2

      The Qt::WA_OpaquePaintEvent seems to be what I need but setting this to the scroll area still erase the background before the paintEvent is called.

      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