Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.2.0
-
None
-
d8fb0b485a604d690504df5b44feaeba5325dd60
Description
There is currently no way to set a surface format on a Window from QML. This means that it is not possible to request a given OpenGL version and profile for windows that are created from QML. (unless one resorts to doing this in C++ before the windows gets visible)
See discussion in https://codereview.qt-project.org/#change,81097
The easiest solution is to add a static setter to QQuickWindow that sets a QSurfaceFormat which is then used in all QQuickWindow instances.
This still needs some additional solution to expose the version and profile to QML.
Attachments
For Gerrit Dashboard: QTBUG-36392 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
81097,1 | WIP: Expose some surface format bits on the QQuickWindow | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
81357,7 | Add defaultSurfaceFormat to QQuickWindow | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
81367,2 | WIP: Expose some glsl information to QML in QQuickWindow | dev | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |