C++ (Qt)QGraphicsView view(&scene);view.setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
QGraphicsScene scene; QGraphicsView view(&scene); view.setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers))); view.setViewportUpdateMode(QGraphicsView::FullViewportUpdate); QGraphicsProxyWidget *label = scene.addWidget(new QLabel("Hello, world!")); label->rotate(65); view.show(); sleep(10); label->rotate(165); view.show();
sleep(10);