[Qt-interest] Render hidden widget to QPixmap
Alexandre Beraud
aberaud at infflux.com
Mon Feb 8 15:19:42 CET 2010
Hi,
Did you try to use the static grabWidget() method ?
http://doc.trolltech.com/4.5/qpixmap.html#grabWidget
Regards,
Alex
Liebe Markus (RtP2/TEF72) a écrit :
> Hi there,
> I want to use Qwidget::render() to create a Pixmap containing the
> contents of a hidden Qwidget foo which was not shown on the screen before.
> This does not work for me. I figured out that I have to use
> foo->show() to display the widget on the screen before I am able to
> render the contents to the Qpixmap.
> Otherwise I do not get a Qpixmap with the correct contents, it is just
> plain gray….
> In my particular situation I am not able to show the widget on screen
> before. So is there any way to render a hidden widget to a Qpixmap?
> Regards,
> Markus
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Alexandre BERAUD
Ingénieur Développement
Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site : www.infflux.com
More information about the Qt-interest-old
mailing list