How to render a QQuickItem offscreen on a QQuickRenderControl from a C++ function
-
I am using QQuickRenderControl to render some texture using an QOffscreenSurface. This is very much dependent on the Qt official example for
QQuickRenderControlHow can I offscreen render individual
QQuickItems to thisQQuickRenderControl.I have the
QQmlApplicationEnginepointer & easily get a qml object in C++ function like so:QQuickItem * my_qml_item = QmlEnginePointer->rootObjects()[0]->findChild<QQuickItem*>("MyQMLItemObject");How can I render
my_qml_iteminto myQQuickRenderControlfrom a C++ function?PS: I have the QOffscreenSurface set up to take care of the refresh etc. I just want to know how to render any
QQuickItemon thisQQuickRenderControl.