QSurface

PyQt5.QtGui.QSurface

Inherited by QOffscreenSurface, QWindow.

Description

The QSurface class is an abstraction of renderable surfaces in Qt.

The size of the surface is accessible with the size() function. The rendering specific attributes of the surface are accessible through the format() function.

Enums

SurfaceClass

The enum describes the actual subclass of the surface.

Member

Value

Description

Offscreen

1

The surface is an instance of QOffscreenSurface.

Window

0

The surface is an instance of QWindow.


SurfaceType

TODO

Member

Value

Description

MetalSurface

TODO

TODO

OpenGLSurface

TODO

TODO

OpenVGSurface

TODO

TODO

RasterGLSurface

TODO

TODO

RasterSurface

TODO

TODO

VulkanSurface

TODO

TODO

Methods

__init__(SurfaceClass)

Creates a surface with the given type.


__init__(QSurface)

TODO


format() → QSurfaceFormat

TODO


size() → QSize

TODO


supportsOpenGL() → bool

Returns true if the surface is OpenGL compatible and can be used in conjunction with QOpenGLContext; otherwise returns false.


surfaceClass() → SurfaceClass

Returns the surface class of this surface.


surfaceType() → SurfaceType

TODO