Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to initialize QQuickRenderControl?



  • I'm currently attempting to render a QQuickWindow into a VkImage. I'm setting the graphics API, Vulkan instance, and graphics device for the QQuickWindow before calling the initialize function on my render control, but it seems like it always fails to initialize. I feel like the function signature is missing some things, because in Qt 5.15 the initialize function takes a QOpenGLContext pointer but has no arguments in Qt 6. Is there something else that I'm missing that would cause it to fail to initialize?



  • Ah, I seem to have figured it out. You have to construct the QQuickWindow with the QQuickRenderControl as the parent. Wish that was a little more clear in the QQuickRenderControl docs.


Log in to reply