Qt-interest Archive, May 2008
Qt 4.4 and MSWindowsOwnDC, WA_PaintOnScreen, WA_OpaquePaintEvent
Message 1 in thread
I have a widget where Qt::MSWindowsOwnDC, and Qt::WA_PaintOnScreen and
Qt::WA_OpaquePaintEvent are set. I do all the drawing myself here. With
Qt < 4.4, I could add buttons, checkboxes, etc. to this widget and the
buttons would draw on top of whatever was drawn. I could click on them
and they would work fine.
After the upgrade to 4.4, these buttons no longer appear. Either they
are either not being drawn, or are being drawn over by my own drawing
code, or are being drawn to the wrong buffer, or ???
I'd like to get the same behavior I had with Qt < 4.4 without
downgrading. Any ideas?
Thanks,
-Andrew
--
[ signature omitted ]
Message 2 in thread
Hi Andrew,
raij@xxxxxxxxxxxx wrote:
> I have a widget where Qt::MSWindowsOwnDC, and Qt::WA_PaintOnScreen and
> Qt::WA_OpaquePaintEvent are set. I do all the drawing myself here. With
> Qt < 4.4, I could add buttons, checkboxes, etc. to this widget and the
> buttons would draw on top of whatever was drawn. I could click on them
> and they would work fine.
>
> After the upgrade to 4.4, these buttons no longer appear. Either they
> are either not being drawn, or are being drawn over by my own drawing
> code, or are being drawn to the wrong buffer, or ???
>
> I'd like to get the same behavior I had with Qt < 4.4 without
> downgrading. Any ideas?
Unfortunately, there is a bug in Qt 4.4.0 that makes such widgets behave
a bit strange. This is already fixed in the snapshots and will work with
the next Qt 4.4 release (which you can expect to see around the
beginning/middle of June).
Cheers,
--
[ signature omitted ]