I tried QPixmap::grabWidget and it only grabs the background. What I draw on the frame in paintEvent is lost.
Is there really no other way? If I reimplement paintEvent then I have to write the painting code for every different kind of widget twice. Plus the style sheet is not applied, so I have to figure out a way to transfer the style from the widget to the QImage. It's ugly and cumbersome. There must be a generic way.
Bookmarks