QGLWidget Class Reference
[QtOpenGL module]
Inherits QWidget.
Methods
- __init__ (self, QWidget parent = None, QGLWidget shareWidget = None, Qt.WindowFlags flags = 0)
- __init__ (self, QGLContext, QWidget parent = None, QGLWidget shareWidget = None, Qt.WindowFlags flags = 0)
- __init__ (self, QGLFormat, QWidget parent = None, QGLWidget shareWidget = None, Qt.WindowFlags flags = 0)
- bool autoBufferSwap (self)
- int bindTexture (self, QImage, int target = GL_TEXTURE_2D, int format = GL_RGBA)
- int bindTexture (self, QPixmap, int target = GL_TEXTURE_2D, int format = GL_RGBA)
- int bindTexture (self, QString)
- int bindTexture (self, QImage, int, int, QGLContext.BindOptions)
- int bindTexture (self, QPixmap, int, int, QGLContext.BindOptions)
- QGLColormap colormap (self)
- QGLContext context (self)
- deleteTexture (self, int)
- doneCurrent (self)
- bool doubleBuffer (self)
- drawTexture (self, QRectF, int, int textureTarget = GL_TEXTURE_2D)
- drawTexture (self, QPointF, int, int textureTarget = GL_TEXTURE_2D)
- bool event (self, QEvent)
- int fontDisplayListBase (self, QFont, int listBase = 2000)
- QGLFormat format (self)
- glDraw (self)
- glInit (self)
- QImage grabFrameBuffer (self, bool withAlpha = False)
- initializeGL (self)
- initializeOverlayGL (self)
- bool isSharing (self)
- bool isValid (self)
- makeCurrent (self)
- makeOverlayCurrent (self)
- QGLContext overlayContext (self)
- QPaintEngine paintEngine (self)
- paintEvent (self, QPaintEvent)
- paintGL (self)
- paintOverlayGL (self)
- qglClearColor (self, QColor)
- qglColor (self, QColor)
- QPixmap renderPixmap (self, int width = 0, int height = 0, bool useContext = False)
- renderText (self, int, int, QString, QFont font = QFont(), int listBase = 2000)
- renderText (self, float, float, float, QString, QFont font = QFont(), int listBase = 2000)
- resizeEvent (self, QResizeEvent)
- resizeGL (self, int, int)
- resizeOverlayGL (self, int, int)
- setAutoBufferSwap (self, bool)
- setColormap (self, QGLColormap)
- setContext (self, QGLContext, QGLContext shareContext = None, bool deleteOldContext = True)
- setFormat (self, QGLFormat)
- setMouseTracking (self, bool)
- swapBuffers (self)
- updateGL (self)
- updateOverlayGL (self)
Static Methods
Detailed Description
Method Documentation
QGLWidget.__init__ (self, QWidget parent = None, QGLWidget shareWidget = None, Qt.WindowFlags flags = 0)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
The QGLContext argument has it's ownership transferred to Qt.
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QGLWidget.autoBufferSwap (self)
int QGLWidget.bindTexture (self, QImage, int target = GL_TEXTURE_2D, int format = GL_RGBA)
int QGLWidget.bindTexture (self, QPixmap, int target = GL_TEXTURE_2D, int format = GL_RGBA)
int QGLWidget.bindTexture (self, QString)
QGLColormap QGLWidget.colormap (self)
QGLContext QGLWidget.context (self)
QImage QGLWidget.convertToGLFormat (QImage)
QGLWidget.deleteTexture (self, int)
QGLWidget.doneCurrent (self)
bool QGLWidget.doubleBuffer (self)
QGLWidget.drawTexture (self, QRectF, int, int textureTarget = GL_TEXTURE_2D)
QGLWidget.drawTexture (self, QPointF, int, int textureTarget = GL_TEXTURE_2D)
bool QGLWidget.event (self, QEvent)
int QGLWidget.fontDisplayListBase (self, QFont, int listBase = 2000)
QGLFormat QGLWidget.format (self)
QGLWidget.glDraw (self)
QGLWidget.glInit (self)
QImage QGLWidget.grabFrameBuffer (self, bool withAlpha = False)
QGLWidget.initializeGL (self)
QGLWidget.initializeOverlayGL (self)
bool QGLWidget.isSharing (self)
bool QGLWidget.isValid (self)
QGLWidget.makeCurrent (self)
QGLWidget.makeOverlayCurrent (self)
QGLContext QGLWidget.overlayContext (self)
QPaintEngine QGLWidget.paintEngine (self)
QGLWidget.paintEvent (self, QPaintEvent)
QGLWidget.paintGL (self)
QGLWidget.paintOverlayGL (self)
QGLWidget.qglClearColor (self, QColor)
QGLWidget.qglColor (self, QColor)
QPixmap QGLWidget.renderPixmap (self, int width = 0, int height = 0, bool useContext = False)
QGLWidget.renderText (self, int, int, QString, QFont font = QFont(), int listBase = 2000)
QGLWidget.renderText (self, float, float, float, QString, QFont font = QFont(), int listBase = 2000)
QGLWidget.resizeEvent (self, QResizeEvent)
QGLWidget.resizeGL (self, int, int)
QGLWidget.resizeOverlayGL (self, int, int)
QGLWidget.setAutoBufferSwap (self, bool)
QGLWidget.setColormap (self, QGLColormap)
QGLWidget.setContext (self, QGLContext, QGLContext shareContext = None, bool deleteOldContext = True)
The QGLContext argument has it's ownership transferred to Qt.
QGLWidget.setFormat (self, QGLFormat)
QGLWidget.setMouseTracking (self, bool)
QGLWidget.swapBuffers (self)
QGLWidget.updateGL (self)
This method is also a Qt slot with the C++ signature void updateGL().
QGLWidget.updateOverlayGL (self)
This method is also a Qt slot with the C++ signature void updateOverlayGL().