Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2012
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. from PyQt4 import QtCore, QtGui, QtOpenGL
  2.  
  3. app = QtGui.QApplication([])
  4.  
  5. widget = QtOpenGL.QGLWidget()
  6. scene = QtGui.QGraphicsScene()
  7. view = QtGui.QGraphicsView()
  8.  
  9. view.setScene(scene)
  10. view.setViewport(widget)
  11. view.show()
  12. widget.show()
  13.  
  14. scene.addText("hello world")
  15.  
  16. app.exec_()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement