Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
My QQuickRenderControl isn't calling the render function if root QQuickItem isn't “dirty”
alberto.toglia last edited by alberto.toglia
I'm experimenting with the "RenderControl" project from Qt's Examples with the goal of knowing how fast would Qt's Quick Framework with a QQuickRenderControl would render an empty scene.
The source can be found here
For this, I've removed almost everything from the qml file and left a simple rectangle but I noticed that my
WindowSingleThreaded::render()stopped being called altogether.
I saw that introducing a simple SequentialAnimation to the root item made the
WindowSingleThreaded::render()get called again every frame.
Now I'm sure this would be somewhat ideal for all those cases where you don't want to re-render your scene if nothing has changed but in my case, I want to have full control over the rendering loop even if the qml scene isn't "dirty".
Does anyone know how I can forcefully have
WindowSingleThreaded::render()whether the QQuickWindow wants it or not.