[Interest] WA_StaticContents resize not working in qt5?

Rui Abreu Ferreira equalsraf at gmx.com
Fri Jun 13 00:23:42 CEST 2014


Hi

I've been trying to port some Qt4 code in Qt5 and running into some 
issues with a custom QWidget that uses WA_StaticContents and 
WA_OpaquePaintEvent.

This worked fine in Qt4, but with Qt5 whenever I resize the widget its 
full contents turn black. All other cases seem ok, e.g. covering the 
widget does not erase its content.

In Qt4 when a resize happened I would have to paint the excess margins 
(i.e. if the widget grew) but the original contents would always remain.

I'm currently testing on 5.3.0/Linux_x64 , did anyone come across this?



More information about the Interest mailing list