PythonQt.QtOpenGL.QGLWidget · declarations 001
Back to PythonQt.QtOpenGL.QGLWidget
autoBufferSwap
autoBufferSwap() -> bool
X.autoBufferSwap() -> bool
Supplemental documentation: Qt 5 reference:
[protected] bool QGLWidget::autoBufferSwap() const
Returns true if the widget is doing automatic GL buffer swapping; otherwise returns
false.
See also setAutoBufferSwap().
Upstream PySide2 reference signatures (binding differences may apply):
autoBufferSwap(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#autoBufferSwap
bindTexture
bindTexture(image: Any, target: Any, format: Any, options: Any) -> int
X.bindTexture(image, target, format, options) -> int
Supplemental documentation: Qt 5 reference:
GLuint QGLWidget::bindTexture(const QImage \&image, GLenum target \= GL_TEXTURE_2D, GLint format \= GL_RGBA)
Calls QGLContext:::bindTexture(image, target, format) on the currently set context.
See also deleteTexture().
GLuint QGLWidget::bindTexture(const QImage \&image, GLenum target, GLint format, QGLContext::BindOptions options)
This is an overloaded function.
The binding options are a set of options used to decide how to bind the texture to the context.
This function was introduced in Qt 4.6.
GLuint QGLWidget::bindTexture(const QPixmap \&pixmap, GLenum target, GLint format, QGLContext::BindOptions options)
This is an overloaded function.
Generates and binds a 2D GL texture to the current context, based on pixmap. The generated texture id is returned and can be used in
The binding options are a set of options used to decide how to bind the texture to the context.
This function was introduced in Qt 4.6.
GLuint QGLWidget::bindTexture(const QPixmap \&pixmap, GLenum target \= GL_TEXTURE_2D, GLint format \= GL_RGBA)
Calls QGLContext:::bindTexture(pixmap, target, format) on the currently set context.
See also deleteTexture().
GLuint QGLWidget::bindTexture(const QString \&fileName)
This is an overloaded function.
Calls QGLContext::bindTexture(fileName) on the currently set context.
See also deleteTexture().
Upstream PySide2 reference signatures (binding differences may apply):
bindTexture(self, fileName: str) -> int
bindTexture(self, image: PySide2.QtGui.QImage, target: int, format: int, options: PySide2.QtOpenGL.QGLContext.BindOptions) -> int
bindTexture(self, image: PySide2.QtGui.QImage, target: int=..., format: int=...) -> int
bindTexture(self, pixmap: PySide2.QtGui.QPixmap, target: int, format: int, options: PySide2.QtOpenGL.QGLContext.BindOptions) -> int
bindTexture(self, pixmap: PySide2.QtGui.QPixmap, target: int=..., format: int=...) -> int
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#bindTexture
colormap
colormap() -> Any
X.colormap() -> PythonQt.QtOpenGL.QGLColormap
Supplemental documentation: Qt 5 reference:
const QGLColormap \&QGLWidget::colormap() const
Returns the colormap for this widget.
Usually it is only top-level widgets that can have different colormaps installed. Asking for the colormap of a child widget will return the colormap for the child's top-level widget.
If no colormap has been set for this widget, the QGLColormap returned will be empty.
See also setColormap() and QGLColormap::isEmpty().
Upstream PySide2 reference signatures (binding differences may apply):
colormap(self) -> PySide2.QtOpenGL.QGLColormap
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#colormap
context
context() -> Any
X.context() -> PythonQt.QtOpenGL.QGLContext
Supplemental documentation: Qt 5 reference:
QGLContext *QGLWidget::context() const
Returns the context of this widget.
It is possible that the context is not valid (see isValid()), for example, if the underlying hardware does not support the format attributes that were requested.
See also setContext().
Upstream PySide2 reference signatures (binding differences may apply):
context(self) -> PySide2.QtOpenGL.QGLContext
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#context
convertToGLFormat
convertToGLFormat(img: Any) -> Any
X.convertToGLFormat(img) -> PythonQt.QtGui.QImage
Supplemental documentation: Qt 5 reference:
[static] QImage QGLWidget::convertToGLFormat(const QImage \&img)
Converts the image img into the unnamed format expected by OpenGL functions such as
glTexImage2D(). The returned image is not usable as a
QImage, but
QImage::width(),
QImage::height() and
QImage::bits() may be used with
OpenGL. The GL format used is GL_RGBA.
Upstream PySide2 reference signatures (binding differences may apply):
convertToGLFormat(img: PySide2.QtGui.QImage) -> PySide2.QtGui.QImage
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#convertToGLFormat
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtOpenGL.QGLWidget.customContextMenuRequested; argument details are not documented.
deleteTexture
deleteTexture(tx_id: int) -> None
X.deleteTexture(tx_id)
Supplemental documentation: Qt 5 reference:
void QGLWidget::deleteTexture(GLuint id)
Calls QGLContext::deleteTexture(id) on the currently set context.
See also bindTexture().
Upstream PySide2 reference signatures (binding differences may apply):
deleteTexture(self, tx_id: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#deleteTexture
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtOpenGL.QGLWidget.destroyed; argument details are not documented.
doneCurrent
doneCurrent() -> None
X.doneCurrent()
Supplemental documentation: Qt 5 reference:
void QGLWidget::doneCurrent()
Makes no GL context the current context. Normally, you do not need to call this function; QGLContext calls it as necessary. However, it may be useful in multithreaded environments.
Upstream PySide2 reference signatures (binding differences may apply):
doneCurrent(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#doneCurrent
doubleBuffer
doubleBuffer() -> bool
X.doubleBuffer() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLWidget::doubleBuffer() const
Returns true if the contained GL rendering context has double buffering; otherwise
returns false.
See also QGLFormat::doubleBuffer().
Upstream PySide2 reference signatures (binding differences may apply):
doubleBuffer(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#doubleBuffer
drawTexture
drawTexture(point: Any, textureId: int, textureTarget: int) -> None
X.drawTexture(point, textureId, textureTarget)
Supplemental documentation: Qt 5 reference:
void QGLWidget::drawTexture(const QRectF \&target, GLuint textureId, GLenum textureTarget \= GL_TEXTURE_2D)
Calls the corresponding QGLContext::drawTexture() with target, textureId, and textureTarget for this widget's context.
This function was introduced in Qt 4.4.
void QGLWidget::drawTexture(const QPointF \&point, GLuint textureId, GLenum textureTarget \= GL_TEXTURE_2D)
Calls the corresponding QGLContext::drawTexture() with point, textureId, and textureTarget for this widget's context.
This function was introduced in Qt 4.4.
Upstream PySide2 reference signatures (binding differences may apply):
drawTexture(self, point: PySide2.QtCore.QPointF, textureId: int, textureTarget: int=...) -> None
drawTexture(self, target: PySide2.QtCore.QRectF, textureId: int, textureTarget: int=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#drawTexture
event
event(arg__1: Any) -> bool
X.event(arg__1) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QGLWidget::event(QEvent *e)
Reimplements: QWidget::event(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
event(self, arg__1: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#event
format
format() -> Any
X.format() -> PythonQt.QtOpenGL.QGLFormat
Supplemental documentation: Qt 5 reference:
QGLFormat QGLWidget::format() const
Returns the format of the contained GL rendering context.
See also setFormat().
Upstream PySide2 reference signatures (binding differences may apply):
format(self) -> PySide2.QtOpenGL.QGLFormat
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#format
glDraw
glDraw() -> None
X.glDraw()
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGLWidget::glDraw()
Executes the virtual function paintGL().
The widget's rendering context will become the current context and initializeGL() will be called if it hasn't already been called.
Upstream PySide2 reference signatures (binding differences may apply):
glDraw(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#glDraw
glInit
glInit() -> None
X.glInit()
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGLWidget::glInit()
Initializes OpenGL for this widget's context. Calls the virtual function initializeGL().
Upstream PySide2 reference signatures (binding differences may apply):
glInit(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#glInit
grabFrameBuffer
grabFrameBuffer(withAlpha: bool) -> Any
X.grabFrameBuffer(withAlpha) -> PythonQt.QtGui.QImage
Supplemental documentation: Qt 5 reference:
QImage QGLWidget::grabFrameBuffer(bool withAlpha \= false)
Returns an image of the frame buffer. If withAlpha is true the alpha channel is included.
Depending on your hardware, you can explicitly select which color buffer to grab with a glReadBuffer() call before calling this function.
On QNX the back buffer is not preserved when swapBuffers() is called. The back buffer where this function reads from, might thus not contain the same content as the front buffer. In order to retrieve what is currently visible on the screen, swapBuffers() has to be executed prior to this function call.
Upstream PySide2 reference signatures (binding differences may apply):
grabFrameBuffer(self, withAlpha: bool=...) -> PySide2.QtGui.QImage
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#grabFrameBuffer
initializeGL
initializeGL() -> None
X.initializeGL()
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGLWidget::initializeGL()
This virtual function is called once before the first call to paintGL() or resizeGL(), and then once whenever the widget has been assigned a new QGLContext. Reimplement it in a subclass.
This function should set up any required OpenGL context rendering flags, defining display lists, etc.
There is no need to call makeCurrent() because this has already been done when this function is called.
Upstream PySide2 reference signatures (binding differences may apply):
initializeGL(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#initializeGL
initializeOverlayGL
initializeOverlayGL() -> None
X.initializeOverlayGL()
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGLWidget::initializeOverlayGL()
This virtual function is used in the same manner as initializeGL() except that it operates on the widget's overlay context instead of the widget's main context. This means that initializeOverlayGL() is called once before the first call to paintOverlayGL() or resizeOverlayGL(). Reimplement it in a subclass.
This function should set up any required OpenGL context rendering flags, defining display lists, etc. for the overlay context.
There is no need to call makeOverlayCurrent() because this has already been done when this function is called.
Upstream PySide2 reference signatures (binding differences may apply):
initializeOverlayGL(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#initializeOverlayGL
isSharing
isSharing() -> bool
X.isSharing() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLWidget::isSharing() const
Returns true if this widget's GL context is shared with another GL context, otherwise
false is returned. Context sharing might not be possible if the widgets use different
formats.
See also format().
Upstream PySide2 reference signatures (binding differences may apply):
isSharing(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#isSharing
isValid
isValid() -> bool
X.isValid() -> bool
Supplemental documentation: Qt 5 reference:
bool QGLWidget::isValid() const
Returns true if the widget has a valid GL rendering context; otherwise returns
false. A widget will be invalid if the system has no OpenGL
support.
Upstream PySide2 reference signatures (binding differences may apply):
isValid(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#isValid
makeCurrent
makeCurrent() -> None
X.makeCurrent()
Supplemental documentation: Qt 5 reference:
void QGLWidget::makeCurrent()
Makes this widget the current widget for OpenGL operations, i.e. makes the widget's rendering context the current OpenGL rendering context.
Upstream PySide2 reference signatures (binding differences may apply):
makeCurrent(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#makeCurrent
makeOverlayCurrent
makeOverlayCurrent() -> None
X.makeOverlayCurrent()
Supplemental documentation: Qt 5 reference:
void QGLWidget::makeOverlayCurrent()
Makes the overlay context of this widget current. Use this if you need to issue OpenGL commands to the overlay context outside of initializeOverlayGL(), resizeOverlayGL(), and paintOverlayGL().
Does nothing if this widget has no overlay.
See also makeCurrent().
Upstream PySide2 reference signatures (binding differences may apply):
makeOverlayCurrent(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#makeOverlayCurrent
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtOpenGL.QGLWidget.objectNameChanged; argument details are not documented.
overlayContext
overlayContext() -> Any
X.overlayContext() -> PythonQt.QtOpenGL.QGLContext
Supplemental documentation: Qt 5 reference:
const QGLContext *QGLWidget::overlayContext() const
Returns the overlay context of this widget, or nullptr if this widget has no overlay.
See also context().
Upstream PySide2 reference signatures (binding differences may apply):
overlayContext(self) -> PySide2.QtOpenGL.QGLContext
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#overlayContext
paintEngine
paintEngine() -> Any
X.paintEngine() -> PythonQt.QtGui.QPaintEngine
Upstream PySide2 reference signatures (binding differences may apply):
paintEngine(self) -> PySide2.QtGui.QPaintEngine
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#paintEngine
paintEvent
paintEvent(arg__1: Any) -> None
X.paintEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QGLWidget::paintEvent(QPaintEvent *event)
Reimplements: QWidget::paintEvent(QPaintEvent *event).
Handles paint events passed in the event parameter. Will cause the virtual paintGL() function to be called.
The widget's rendering context will become the current context and initializeGL() will be called if it hasn't already been called.
Upstream PySide2 reference signatures (binding differences may apply):
paintEvent(self, arg__1: PySide2.QtGui.QPaintEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#paintEvent
paintGL
paintGL() -> None
X.paintGL()
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGLWidget::paintGL()
This virtual function is called whenever the widget needs to be painted. Reimplement it in a subclass.
There is no need to call makeCurrent() because this has already been done when this function is called.
Upstream PySide2 reference signatures (binding differences may apply):
paintGL(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#paintGL
paintOverlayGL
paintOverlayGL() -> None
X.paintOverlayGL()
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGLWidget::paintOverlayGL()
This virtual function is used in the same manner as paintGL() except that it operates on the widget's overlay context instead of the widget's main context. This means that paintOverlayGL() is called whenever the widget's overlay needs to be painted. Reimplement it in a subclass.
There is no need to call makeOverlayCurrent() because this has already been done when this function is called.
Upstream PySide2 reference signatures (binding differences may apply):
paintOverlayGL(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#paintOverlayGL
qglClearColor
qglClearColor(c: Any) -> None
X.qglClearColor(c)
Supplemental documentation: Qt 5 reference:
void QGLWidget::qglClearColor(const QColor \&c) const
Convenience function for specifying the clearing color to OpenGL. Calls glClearColor (in RGBA mode) or glClearIndex (in color-index mode) with the color c. Applies to this widgets GL context.
See also qglColor(), QGLContext::currentContext(), and QColor.
Upstream PySide2 reference signatures (binding differences may apply):
qglClearColor(self, c: PySide2.QtGui.QColor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#qglClearColor
qglColor
qglColor(c: Any) -> None
X.qglColor(c)
Supplemental documentation: Qt 5 reference:
void QGLWidget::qglColor(const QColor \&c) const
Convenience function for specifying a drawing color to OpenGL. Calls glColor4 (in RGBA mode) or glIndex (in color-index mode) with the color c. Applies to this widgets GL context.
Note: This function is not supported on OpenGL/ES 2.0 systems.
See also qglClearColor(), QGLContext::currentContext(), and QColor.
Upstream PySide2 reference signatures (binding differences may apply):
qglColor(self, c: PySide2.QtGui.QColor) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#qglColor
renderPixmap
renderPixmap(w: int, h: int, useContext: bool) -> Any
X.renderPixmap(w, h, useContext) -> PythonQt.QtGui.QPixmap
Supplemental documentation: Qt 5 reference:
QPixmap QGLWidget::renderPixmap(int w \= 0, int h \= 0, bool useContext \= false)
Renders the current scene on a pixmap and returns the pixmap.
You can use this method on both visible and invisible QGLWidget objects.
Internally the function renders into a framebuffer object and performs pixel readback. This has a performance penalty, meaning that this function is not suitable to be called at a high frequency.
After creating and binding the framebuffer object, the function will call initializeGL(), resizeGL(), and paintGL(). On the next normal update initializeGL() and resizeGL() will be triggered again since the size of the destination pixmap and the QGLWidget's size may differ.
The size of the pixmap will be w pixels wide and h pixels high unless one of these parameters is 0 (the default), in which case the pixmap will have the same size as the widget.
Care must be taken when using framebuffer objects in paintGL() in combination with this function. To switch back to the default framebuffer, use QGLFramebufferObject::bindDefault(). Binding FBO 0 is wrong since renderPixmap() uses a custom framebuffer instead of the one provided by the windowing system.
useContext is ignored. Historically this parameter enabled the usage of the existing GL context. This is not supported anymore since additional contexts are never created.
Overlays are not rendered onto the pixmap.
If the GL rendering context and the desktop have different bit depths, the result will most likely look surprising.
Note that the creation of display lists, modifications of the view frustum etc. should be done from within initializeGL(). If this is not done, the temporary QGLContext will not be initialized properly, and the rendered pixmap may be incomplete/corrupted.
Upstream PySide2 reference signatures (binding differences may apply):
renderPixmap(self, w: int=..., h: int=..., useContext: bool=...) -> PySide2.QtGui.QPixmap
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#renderPixmap
renderText
renderText(x: Any, y: Any, z: Any, str: str, fnt: Any) -> None
X.renderText(x, y, z, str, fnt)
Supplemental documentation: Qt 5 reference:
void QGLWidget::renderText(int x, int y, const QString \&str, const QFont \&font \= QFont())
Renders the string str into the GL context of this widget.
x and y are specified in window coordinates, with the origin in the upper left-hand corner of the window. If font is not specified, the currently set application font will be used to render the string. To change the color of the rendered text you can use the glColor() call (or the qglColor() convenience function), just before the renderText() call.
Note: This function clears the stencil buffer.
Note: This function is not supported on OpenGL/ES systems.
Note: This function temporarily disables depth-testing when the text is drawn.
Note: This function can only be used inside a QPainter::beginNativePainting()/QPainter::endNativePainting() block if a painter is active on the QGLWidget.
void QGLWidget::renderText(double x, double y, double z, const QString \&str, const QFont \&font \= QFont())
This is an overloaded function.
x, y and z are specified in scene or object coordinates relative to the currently set projection and model matrices. This can be useful if you want to annotate models with text labels and have the labels move with the model as it is rotated etc.
Note: This function is not supported on OpenGL/ES systems.
Note: If depth testing is enabled before this function is called, then the drawn
text will be depth-tested against the models that have already been drawn in the scene.
Use glDisable(GL_DEPTH_TEST) before calling this function to annotate the models
without depth-testing the text.
Note: This function can only be used inside a QPainter::beginNativePainting()/QPainter::endNativePainting() block if a painter is active on the QGLWidget.
Upstream PySide2 reference signatures (binding differences may apply):
renderText(self, x: float, y: float, z: float, str: str, fnt: PySide2.QtGui.QFont=...) -> None
renderText(self, x: int, y: int, str: str, fnt: PySide2.QtGui.QFont=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#renderText
resizeEvent
resizeEvent(arg__1: Any) -> None
X.resizeEvent(arg__1)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QGLWidget::resizeEvent(QResizeEvent *event)
Reimplements: QWidget::resizeEvent(QResizeEvent *event).
Handles resize events that are passed in the event parameter. Calls the virtual function resizeGL().
Upstream PySide2 reference signatures (binding differences may apply):
resizeEvent(self, arg__1: PySide2.QtGui.QResizeEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#resizeEvent
resizeGL
resizeGL(w: int, h: int) -> None
X.resizeGL(w, h)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGLWidget::resizeGL(int width, int height)
This virtual function is called whenever the widget has been resized. The new size is passed in width and height. Reimplement it in a subclass.
There is no need to call makeCurrent() because this has already been done when this function is called.
Upstream PySide2 reference signatures (binding differences may apply):
resizeGL(self, w: int, h: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#resizeGL
resizeOverlayGL
resizeOverlayGL(w: int, h: int) -> None
X.resizeOverlayGL(w, h)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QGLWidget::resizeOverlayGL(int width, int height)
This virtual function is used in the same manner as paintGL() except that it operates on the widget's overlay context instead of the widget's main context. This means that resizeOverlayGL() is called whenever the widget has been resized. The new size is passed in width and height. Reimplement it in a subclass.
There is no need to call makeOverlayCurrent() because this has already been done when this function is called.
Upstream PySide2 reference signatures (binding differences may apply):
resizeOverlayGL(self, w: int, h: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#resizeOverlayGL
setAutoBufferSwap
setAutoBufferSwap(on: bool) -> None
X.setAutoBufferSwap(on)
Supplemental documentation: Qt 5 reference:
[protected] void QGLWidget::setAutoBufferSwap(bool on)
If on is true automatic GL buffer swapping is switched on; otherwise it is switched off.
If on is true and the widget is using a double-buffered format, the background and foreground GL buffers will automatically be swapped after each paintGL() call.
The buffer auto-swapping is on by default.
See also autoBufferSwap(), doubleBuffer(), and swapBuffers().
Upstream PySide2 reference signatures (binding differences may apply):
setAutoBufferSwap(self, on: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#setAutoBufferSwap
setColormap
setColormap(map: Any) -> None
X.setColormap(map)
Supplemental documentation: Qt 5 reference:
void QGLWidget::setColormap(const QGLColormap \&cmap)
Set the colormap for this widget to cmap. Usually it is only top-level widgets that can have colormaps installed.
See also colormap().
Upstream PySide2 reference signatures (binding differences may apply):
setColormap(self, map: PySide2.QtOpenGL.QGLColormap) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#setColormap
swapBuffers
swapBuffers() -> None
X.swapBuffers()
Supplemental documentation: Qt 5 reference:
void QGLWidget::swapBuffers()
Swaps the screen contents with an off-screen buffer. This only works if the widget's format specifies double buffer mode.
Normally, there is no need to explicitly call this function because it is done automatically after each widget repaint, i.e. each time after paintGL() has been executed.
See also doubleBuffer(), setAutoBufferSwap(), and QGLFormat::setDoubleBuffer().
Upstream PySide2 reference signatures (binding differences may apply):
swapBuffers(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#swapBuffers
updateGL
updateGL() -> None
X.updateGL()
Supplemental documentation: Qt 5 reference:
[virtual slot] void QGLWidget::updateGL()
Updates the widget by calling glDraw().
Upstream PySide2 reference signatures (binding differences may apply):
updateGL(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#updateGL
updateOverlayGL
updateOverlayGL() -> None
X.updateOverlayGL()
Supplemental documentation: Qt 5 reference:
[virtual slot] void QGLWidget::updateOverlayGL()
Updates the widget's overlay (if any). Will cause the virtual function paintOverlayGL() to be executed.
The widget's rendering context will become the current context and initializeGL() will be called if it hasn't already been called.
Upstream PySide2 reference signatures (binding differences may apply):
updateOverlayGL(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qglwidget.html#updateOverlayGL