Hi!
I am finish Qt application. Application to provide animate.
The part of code for draw:
Q_OBJECT
public:
Graph
( QWidget *parent
=0,
const char *name
=0 );
...
};
QRect rect
= event
->rect
();
pixmap.resize(rect.size().expandedTo(pixmap.size()));
pixmap.fill("#FBFFF3");
....
bitBlt(this, event->rect().topLeft(), &pixmap);
// Which code add to this for save picture to graphic-file?
}
class Graph : public QWidget{
Q_OBJECT
public:
Graph( QWidget *parent=0, const char *name=0 );
...
};
void Graph::paintEvent( QPaintEvent * event) {
QPixmap pixmap;
QRect rect = event->rect();
pixmap.resize(rect.size().expandedTo(pixmap.size()));
pixmap.fill("#FBFFF3");
QPainter p(&pixmap,this);
....
bitBlt(this, event->rect().topLeft(), &pixmap);
// Which code add to this for save picture to graphic-file?
}
To copy to clipboard, switch view to plain text mode
How the animate save to gif-file?
If save to gif-file not possible, then how save series sequence
graphic files?
Thanks and sorry for my english.
Bookmarks