-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
I have multi QQuickRenderTarget for a QQuickWindow, I want to render a part of QQuickWindow to a QQuickRenderTarget.
The QQuickRenderControl::render always from 0,0 position render to the QQuickRenderTarget.
For an example:
QQuickRenderTarget rt1 = QQuickRenderTarget::fromOpenGLTexture(0, ..., QSize(100, 100)); QQuickRenderTarget rt2 = QQuickRenderTarget::fromOpenGLTexture(1, ..., QSize(100, 100)); QQuickRenderControl *rc = window->renderControl(); window->setRenderTarget(rt1); rc->render(QPoint(0, 0)); window->setRenderTarget(rt2); rc->render(QPoint(100, 0));