Creates a surface with the given
The enum describes the actual subclass of the surface.
The enum describes what type of surface this is.
The surface is is composed of pixels and can be rendered to using a software rasterizer like Qt’s raster paint engine.
The surface is an OpenGL compatible surface and can be used in conjunction with
The surface can be rendered to using a software rasterizer, and also supports OpenGL. This surface type is intended for internal Qt use, and requires the use of private API.
The surface is an OpenVG compatible surface and can be used in conjunction with OpenVG contexts.
The surface is a Vulkan compatible surface and can be used in conjunction with the Vulkan graphics API.
The surface is a Metal compatible surface and can be used in conjunction with Apple’s Metal graphics API. This surface type is supported on macOS only.
The surface is a Direct 3D 11 and 12 compatible surface and can be used in conjunction with the DXGI and Direct3D APIs. This surface type is supported on Windows only.
Returns the format of the surface.
Returns the size of the surface in pixels.
- Return type
Returns true if the surface is OpenGL compatible and can be used in conjunction with
QOpenGLContext ; otherwise returns false.
Returns the surface class of this surface.
- Return type
Returns a handle to the platform-specific implementation of the surface.
Returns the type of the surface.
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.