4 #include "kineticview.h"
6 int main(int argc
, char *argv
[])
8 QApplication
app(argc
, argv
);
10 scene
.setSceneRect(0, 0, 600, 600);
12 AppUI
*ui
= new AppUI
;
16 ui
->buildWorld("background:red");
19 QGraphicsView
view(&scene
);
20 view
.setRenderHints( view
.renderHints() | QPainter::Antialiasing
|
21 QPainter::SmoothPixmapTransform
| QPainter::TextAntialiasing
);
23 view
.setDragMode(QGraphicsView::ScrollHandDrag
);