Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Drawing with Wayland INTO QML item
Qt 6.11 is out! See what's new in the release blog

Drawing with Wayland INTO QML item

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 265 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.
  • P Offline
    P Offline
    PeterK
    wrote on last edited by
    #1

    Hello!

    I want to use Qt Wayland to render with a stand alone application inside an item into a bigger QML scene.

    I checked the Qt Wayland examples, but unfortunately all the examples have this structure:

    WaylandCompositor {
        WaylandOutput {
    
            window: Window { .. }
    

    In other words: All the examples have a WaylandCompositor as root object and inside the WaylandOuput they create a top level window.
    But I need something like this:

    Item {
       Text { ... }
    
       Rectangle { /* I want the standalone application render in this area with Wayland */
    }
    

    Of course all of this code is inside a Window. I guess I cant just put a WaylandCompositor into my Rectangle? How can I use Qt Wayland to draw inside a certain item inside a QML scene?
    Thanks!

    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