[Qt-interest] Drawing the same QWidget object twice in its parent?
Bart van Deenen
bvandeenen at infologic.nl
Wed Dec 24 13:22:48 CET 2008
Hi all
Assume I have some complicated widget, with many nested widgets, and I
would like to render this more than once in its parent, how would I have
to go about doing that?
I've found the QPainter::setRedirected function, but I'm not sure if I'm
going the right way. Maybe there is a way to get at the double buffering
pixmap of a widget, and draw that pixmap twice?
What I want to do is create a continuous tickertape effect, and when the
child objects are smaller than the parent, or at the childs border I'd
have to draw them twice.
Just duplicating the child is not an option, because there are
complicated data driven things happening in the descendants.
Thanks for any hints
Bart van Deenen
More information about the Qt-interest-old
mailing list