lasher
25th September 2009, 19:55
Hi,
I need to copy widget as a picture to clipboard, to do this I use simple code
QClipboard *clipboard = QApplication::clipboard();
clipboard->setPixmap(QPixmap::grabWidget(MyWidget));
It works almost ok, It copies olny current view of widget so hidden part
(for example not displayed part od large table) is skipped.
Is it possible to copy full widget?
Thx
I need to copy widget as a picture to clipboard, to do this I use simple code
QClipboard *clipboard = QApplication::clipboard();
clipboard->setPixmap(QPixmap::grabWidget(MyWidget));
It works almost ok, It copies olny current view of widget so hidden part
(for example not displayed part od large table) is skipped.
Is it possible to copy full widget?
Thx