QSurface ClassThe QSurface class is an abstraction of renderable surfaces in Qt. More... #include <QSurface> Inherited by: QWindow. This class was introduced in Qt 5.0. Public Types
Public Functions
Protected Functions
Detailed DescriptionThe 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. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QSurface::Window | 0 | The surface is an instance of QWindow. |
The SurfaceType enum describes what type of surface the.
Constant | Value | Description |
---|---|---|
QSurface::RasterSurface | 0 | The surface is is composed of pixels and can be rendered to using a software rasterizer like Qt's raster paint engine. |
QSurface::OpenGLSurface | 1 | The surface is an OpenGL compatible surface and can be used in conjunction with QOpenGLContext. |
QSize QSurface::size() const
Returns the size of the surface in pixels.