I am trying to create a widget that draws directly in the Window Device Context, invoking getDC()and drawing on it HBITMAP.
The widget that I draw is inside the scroll widget.
I implemented paintEvent(), and it seems to draw, but immediately after painting the widget again turns blank gray.
I tried the installation WA_PaintOnScreenand Qt::WA_NoSystemBackgroundbut none of them helped.
Theoretically, this should be possible, since it basically works GLWidget.
What am I missing?
source
share