Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Render a Window using QwaylandCompositor
Qt 6.11 is out! See what's new in the release blog

Render a Window using QwaylandCompositor

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 248 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sherlin N G
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved