Skip to content

PythonQt.QtGui.QOpenGLWindow · declarations 001

Back to PythonQt.QtGui.QOpenGLWindow

AncestorMode instance-attribute

AncestorMode: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

AutomaticVisibility instance-attribute

AutomaticVisibility: Any

ExcludeTransients instance-attribute

ExcludeTransients: Any

IncludeTransients instance-attribute

IncludeTransients: Any

Maximized instance-attribute

Maximized: Any

Minimized instance-attribute

Minimized: Any

PartialUpdateBlend instance-attribute

PartialUpdateBlend: Any

PartialUpdateBlit instance-attribute

PartialUpdateBlit: Any

Visibility instance-attribute

Visibility: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

Windowed instance-attribute

Windowed: Any

activeChanged

activeChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QOpenGLWindow.activeChanged; argument details are not documented.

alert

alert(msec: Any) -> Any

X.alert(msec)

baseSize

baseSize() -> Any

X.baseSize() -> PythonQt.QtCore.QSize

contentOrientation instance-attribute

contentOrientation: Any

contentOrientationChanged

contentOrientationChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QOpenGLWindow.contentOrientationChanged; argument details are not documented.

context

context() -> Any

X.context() -> PythonQt.QtGui.QOpenGLContext

Supplemental documentation: Qt 5 reference:

QOpenGLContext *QOpenGLWindow::context() const

Returns The QOpenGLContext used by this window or 0 if not yet initialized.

Upstream PySide2 reference signatures (binding differences may apply):

context(self) -> PySide2.QtGui.QOpenGLContext

Source: https://doc.qt.io/archives/qt-5.15/qopenglwindow.html#context

create

create() -> Any

X.create()

defaultFramebufferObject

defaultFramebufferObject() -> int

X.defaultFramebufferObject() -> int

Supplemental documentation: Qt 5 reference:

GLuint QOpenGLWindow::defaultFramebufferObject() const

The framebuffer object handle used by this window.

When the update behavior is set to NoPartialUpdate, there is no separate framebuffer object. In this case the returned value is the ID of the default framebuffer.

Otherwise the value of the ID of the framebuffer object or 0 if not yet initialized.

Upstream PySide2 reference signatures (binding differences may apply):

defaultFramebufferObject(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qopenglwindow.html#defaultFramebufferObject

destroy

destroy() -> Any

X.destroy()

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QOpenGLWindow.destroyed; argument details are not documented.

doneCurrent

doneCurrent() -> None

X.doneCurrent()

Supplemental documentation: Qt 5 reference:

void QOpenGLWindow::doneCurrent()

Releases the context.

It is not necessary to call this function in most cases, since the widget will make sure the context is bound and released properly when invoking paintGL().

See also makeCurrent().

Upstream PySide2 reference signatures (binding differences may apply):

doneCurrent(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qopenglwindow.html#doneCurrent

exposeEvent

exposeEvent(arg__1: Any) -> Any

X.exposeEvent(arg__1)

filePath

filePath() -> str

X.filePath() -> str

flags instance-attribute

flags: Any

focusObjectChanged

focusObjectChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QOpenGLWindow.focusObjectChanged; argument details are not documented.

format

format() -> Any

X.format() -> PythonQt.QtGui.QSurfaceFormat

frameGeometry

frameGeometry() -> Any

X.frameGeometry() -> PythonQt.QtCore.QRect

frameMargins

frameMargins() -> Any

X.frameMargins() -> PythonQt.QtGui.QMargins

framePosition

framePosition() -> Any

X.framePosition() -> PythonQt.QtCore.QPoint

frameSwapped

frameSwapped(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QOpenGLWindow.frameSwapped; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QOpenGLWindow::frameSwapped()

This signal is emitted after the potentially blocking buffer swap has been done. Applications that wish to continuously repaint synchronized to the vertical refresh, should issue an update() upon this signal. This allows for a much smoother experience compared to the traditional usage of timers.

Source: https://doc.qt.io/archives/qt-5.15/qopenglwindow.html#frameSwapped

fromWinId

fromWinId(id: Any) -> Any

X.fromWinId(id) -> PythonQt.QtGui.QWindow

grabFramebuffer

grabFramebuffer() -> Any

X.grabFramebuffer() -> PythonQt.QtGui.QImage

Supplemental documentation: Qt 5 reference:

QImage QOpenGLWindow::grabFramebuffer()

Returns a copy of the framebuffer.

Note: This is a potentially expensive operation because it relies on glReadPixels() to read back the pixels. This may be slow and can stall the GPU pipeline.

Note: When used together with update behavior NoPartialUpdate, the returned image may not contain the desired content when called after the front and back buffers have been swapped (unless preserved swap is enabled in the underlying windowing system interface). In this mode the function reads from the back buffer and the contents of that may not match the content on the screen (the front buffer). In this case the only place where this function can safely be used is paintGL() or paintOverGL().

Upstream PySide2 reference signatures (binding differences may apply):

grabFramebuffer(self) -> PySide2.QtGui.QImage

Source: https://doc.qt.io/archives/qt-5.15/qopenglwindow.html#grabFramebuffer

heightChanged

heightChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QOpenGLWindow.heightChanged; argument details are not documented.

hideEvent

hideEvent(arg__1: Any) -> Any

X.hideEvent(arg__1)

icon

icon() -> Any

X.icon() -> PythonQt.QtGui.QIcon

initializeGL

initializeGL() -> None

X.initializeGL()

Supplemental documentation: Qt 5 reference:

[virtual protected] void QOpenGLWindow::initializeGL()

This virtual function is called once before the first call to paintGL() or resizeGL(). Reimplement it in a subclass.

This function should set up any required OpenGL resources and state.

There is no need to call makeCurrent() because this has already been done when this function is called. Note however that the framebuffer, in case partial update mode is used, is not yet available at this stage, so avoid issuing draw calls from here. Defer such calls to paintGL() instead.

See also paintGL() and resizeGL().

Upstream PySide2 reference signatures (binding differences may apply):

initializeGL(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qopenglwindow.html#initializeGL

isAncestorOf

isAncestorOf(child: Any, mode: Any) -> bool

X.isAncestorOf(child, mode) -> bool

isExposed

isExposed() -> bool

X.isExposed() -> bool

isTopLevel

isTopLevel() -> bool

X.isTopLevel() -> bool

isValid

isValid() -> bool

X.isValid() -> bool

Supplemental documentation: Qt 5 reference:

bool QOpenGLWindow::isValid() const

Returns true if the window's OpenGL resources, like the context, have been successfully initialized. Note that the return value is always false until the window becomes exposed (shown).

Upstream PySide2 reference signatures (binding differences may apply):

isValid(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qopenglwindow.html#isValid