#include "graphicsscene.h" #include int main(int argc, char **argv) { QApplication app(argc, argv); QGraphicsView view; view.setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers))); view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); view.setTransformationAnchor(QGraphicsView::NoAnchor); view.setViewportUpdateMode(QGraphicsView::FullViewportUpdate); view.setScene(new GraphicsScene); view.show(); return app.exec(); }