-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
None
-
6.3.0 RC
-
None
I use QtQuick with the wlroots library, use the QQuickRenderControl and QQuickRenderTarget(It's a OpenGL render buffer object, it's from a EGLImageKHR), to render a QQuickWindow to a wlr_output. but the vertical direction is reversed, in the Qt5, i can use the QQuickCustomRenderStage to set "QSGAbstraceRenderer::setProjectionMatrix", how do it on Qt6?
Maybe we should add a function to QQuickRenderControl to allow control the projection matrix, for a example:
class Q_QUICK_EXPORT QQuickRenderTarget { ... virtual bool configureRenderer(QSGAbstractRenderer *renderer, QQuickWindow *window) const { return false; } ... } void QQuickWindowPrivate::renderSceneGraph(const QSize &size, const QSize &surfaceSize) { ... if (!renderControl || !renderControl->configureRenderer(renderer, q)) const bool flipY = rhi ? !rhi->isYUpInNDC() : false; QSGAbstractRenderer::MatrixTransformFlags matrixFlags; if (flipY) matrixFlags |= QSGAbstractRenderer::MatrixTransformFlipY; ... } ... }
For Gerrit Dashboard: QTBUG-102317 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
405482,7 | Add setMirrorVertically for QQuickRenderTarget | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |