useOpenGL for QML Rectangle component
-
wrote on 14 Dec 2016, 11:22 last edited by
Hi
We are working on Desktop gui application with qt qml 5.7. Can we render the qml components like Rectangle, Label etc using CPU not GPU. Can we switch between CPU and GPU to render the GUI by using properties like useOpenGL?-Tirupathi
-
wrote on 14 Dec 2016, 15:35 last edited by
Hi,
as I understand it QML always tries to draw with OpenGL, using QWindow. The CPU only comes into play when you incorporate the QML-QWindow into a QWidget for desktop display.
-Michael. -
Hi
We are working on Desktop gui application with qt qml 5.7. Can we render the qml components like Rectangle, Label etc using CPU not GPU. Can we switch between CPU and GPU to render the GUI by using properties like useOpenGL?-Tirupathi
@Tirupathi-Korla
Qt 5.8 comes with a software renderer (previously known as the Qt Quick 2D Renderer)
But i don't know if you can switch the renderer during runtime though -
@Tirupathi-Korla
Qt 5.8 comes with a software renderer (previously known as the Qt Quick 2D Renderer)
But i don't know if you can switch the renderer during runtime though@raven-worx said in useOpenGL for QML Rectangle component:
Qt 5.8 comes with a software renderer
http://blog.qt.io/blog/2016/08/15/the-qt-quick-graphics-stack-in-qt-5-8/
" the Qt Quick backend can be changed on a per-process basis during application startup. Once the first QQuickWindow, QQuickView, or QQuickWidget is constructed it will not be possible to change it anymore."
So Im guessing no runtime switching more than once during startup.
1/4