The following members of class QSurfaceFormat are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
(deprecated in 6.0) enum |
ColorSpace { DefaultColorSpace, sRGBColorSpace } |
(deprecated in 6.0) void |
setColorSpace(QSurfaceFormat::ColorSpace colorSpace) |
[deprecated in 6.0] enum QSurfaceFormat::ColorSpaceThis enum is deprecated since 6.0. We strongly advise against using it in new code.
Use setColorSpace(QColorSpace) instead
This enum is used to specify the preferred color space, controlling if the window's associated default framebuffer is able to do updates and blending in a given encoding instead of the standard linear operations.
| Constant | Value | Description |
|---|---|---|
QSurfaceFormat::DefaultColorSpace |
0 |
The default, unspecified color space. |
QSurfaceFormat::sRGBColorSpace |
1 |
When GL_ARB_framebuffer_sRGB or GL_EXT_framebuffer_sRGB is supported by the platform and this value is set, the window will be created with an
sRGB-capable default framebuffer. Note that some platforms may return windows with a sRGB-capable default framebuffer even when not requested explicitly. |
[deprecated in 6.0] void QSurfaceFormat::setColorSpace(QSurfaceFormat::ColorSpace colorSpace)This function is deprecated since 6.0. We strongly advise against using it in new code.
This is an overloaded function.
Use setColorSpace(QColorSpace) instead.
Sets the colorspace to one of the predefined values.
See also colorSpace().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: