[Development] QPixmap::fill( const QWidget *, ... )

Andreas Aardal Hanssen andreas at hanssen.name
Tue Apr 10 21:46:09 CEST 2012


Den 21:10 10. april 2012 skrev Uwe Rathmann <Uwe.Rathmann at tigertal.de>følgende:

> On 04/10/2012 08:03 PM, Uwe Rathmann wrote:Unfortunately QWidget::render
> doesn't work. In my use case I'm inside of
> QWidget::paintEvent and using QWidget::render leads to a recursive call
> of QWidget::paintEvent.


You want to take a screenshot of the widget from within the widget's own
paintEvent? That cannot possibly work. Or even if it did, the result would
be completely non-deterministic. The painting code required to take the
screenshot is in the same function.

Why do you want this? :-) Are you writing some fancy blending code that
feeds the widgets' own rendered output back into its painting code?

-- 
Andreas Aardal Hanssen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120410/7c6deeb8/attachment.html>


More information about the Development mailing list