Hi, i have a widget and i paint some items like line, picture, rect, ...
i use painter to paint and i do not know how i can save what i drew.. somethink like :
painter->saveToFile.. or widget->savetofile...
please can you help me...
Printable View
Hi, i have a widget and i paint some items like line, picture, rect, ...
i use painter to paint and i do not know how i can save what i drew.. somethink like :
painter->saveToFile.. or widget->savetofile...
please can you help me...
do you need to save whole widget content?
use QWidget::grabWidget and then use QPixmap::save with format=BMP.