View Full Version : Draw contents of widget in another widget
gustavosbarreto
6th August 2007, 14:35
Is possible “to draw†the contents of one widget in another one widget? How to make?
marcel
6th August 2007, 14:43
Yes.
If you have widgets w1 and w2, and you want to draw w1 on w2 then you can use:
QPixmap w1Pix = QPixmap::grabWidget(w1);
Now you have the contents of w1 in w1Pix.
Nett you can use any means to draw this pixmap on to w2.
Regards
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.