Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
None
-
af8a68ddb (dev), 8448b5267 (6.9)
-
framework-content 4, framework-content 5
Description
https://doc.qt.io/qt-6/qquick3d.html#details
On this page, it mentions it needs to haveĀ
QSurfaceFormat::setDefaultFormat(QQuick3D::idealSurfaceFormat(4));
for the extra OpenGL context initialization.
I suggest also mentioning clearly this has no effect when using other backends like Direct3D.
or add a link to https://doc.qt.io/qt-6/qtquick3d-requirements.html#opengl-specifics
I think having important information outside of the API introduction page but on a separate page is not good.
make users have a clear understanding of the use case when you need to put this in the main.cpp.
or maybe
#ifndef QT_NO_OPENGL QSurfaceFormat::setDefaultFormat(QQuick3D::idealSurfaceFormat(4)); #endif
Attachments
For Gerrit Dashboard: QTBUG-132582 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
621766,2 | Doc: QQuick3D::idealSurfaceFormat should mention only used for OpenGL | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
622619,2 | Doc: QQuick3D::idealSurfaceFormat should mention only used for OpenGL | 6.9 | qt/qtquick3d | Status: MERGED | +2 | 0 |