PDA

View Full Version : Taking a screenshot of a proxy widget in qtgraphicsview



technoViking
23rd October 2010, 18:08
HI guys,


I know its possible to take a screenshot of something in qt but I was curious how I can only take a picture of 1 widget in qgraphics view. Once I get that screen shot I need to make some of it transparent and some of it not transparent. I know you can make the whole image transparent but is there a way to make only some of it transparent?

The reason I'm doing this is because there is HUGE performance issues using ProxyWidgets and animating them on screen so my idea is to take a screen shot of the widget and animate the screenshot rather than trying to animate the heavy proxywidget. My proxywidget has some transparency and some things not transparent thats why i need the image to do both so the user has no idea its just a screen shot.

Thanks!