Dmitry
6th February 2006, 21:29
Hi!
I am finish Qt application. Application to provide animate.
The part of code for draw:
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?
}
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.
I am finish Qt application. Application to provide animate.
The part of code for draw:
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?
}
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.