PDA

View Full Version : Grab GLwidget canvas in PaintGL without an other active window .



vaibhav
4th October 2011, 16:34
Hi ,

I have QGlwidget in my application.

At some point in application there is a Dialog that pop's up over my Canvas (GLWidget).

This dialog updates the drawing on my Canvas .

I want to grab ( screen shot ) the Canvas content from the Dialog but by avoiding the dialog to be the part of Grab .

I cannot use grabWindow in paintGL() and when i call grabframebuffer() it grabs the contents fine but if there's active dialog over the canvas it grabs it as well i.e the dialog with the contents of canvas is the final image .


So how can i grab the Canvas in paintGL() method avoiding the active QDIalog to be the part of that grab?.

Any help would be appreciated .
Thanks