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

Render a Window using QwaylandCompositor



  • My requirement is to render a QOpenGLWindow using QWindowCompositor. I created a window as main window. So I need to render a sub window inside the main window.

    Window window;
    Compositor compositor(&window);
    window.setCompositor(&compositor);
    compositor.create();
    window.resize(800,600);
    window.show();
    

    The above code is for main Window. The Window class is the child class of QOpenGLWindow.


Log in to reply