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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.