Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PyQt4 import QtCore, QtGui, QtOpenGL
- app = QtGui.QApplication([])
- widget = QtOpenGL.QGLWidget()
- scene = QtGui.QGraphicsScene()
- view = QtGui.QGraphicsView()
- view.setScene(scene)
- view.setViewport(widget)
- view.show()
- widget.show()
- scene.addText("hello world")
- app.exec_()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement