[Qt-interest] QT::WA_OpaquePaintEvent or QT::WA_NoSystemBackground under OSX

Martin Guillon MGuillon at movea.com
Tue Jan 5 10:01:33 CET 2010


Hi,

I am currently porting my application from Win to OSX and I am facing some inconstancies.
In my application, under win, I use QT::WA_OpaquePaintEvent or QT::WA_NoSystemBackground to redraw only parts of the screen for better performances (let s say my application is a drawing pen). So during each drawing I use setClipRect then draw in it. And the rest of the screen remains unchanged.

The problem when I do that under OSX is that the rest of screen keeps being erased, just like if the flag was ignored.

Here are all the flags I used for my window:

Qt::WindowStayOnTopHint
Qt:: FramelessWindowHint
Qt::SubWindow

And Qt::WA_OpaquePaintEvent or Qt::WA_NoSystemBackground.

I also have setMouseTracking to true.

Hope someone can lp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100105/01258ef2/attachment.html 


More information about the Qt-interest-old mailing list