mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-16 10:35:49 +08:00
21 lines
382 B
C++
21 lines
382 B
C++
#include <QApplication>
|
|
#include "renderarea.h"
|
|
#include <EmfEngine.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
RenderArea area;
|
|
|
|
area.setGeometry(100, 100, 600, 500);
|
|
area.show();
|
|
|
|
EmfPaintDevice emf(QSize(600, 500), QString("example.emf"));
|
|
QPainter paint;
|
|
paint.begin(&emf);
|
|
area.draw(&paint);
|
|
paint.end();
|
|
|
|
return app.exec();
|
|
}
|