Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Embedding an External Qt Application on to another QML Application Screen in Linux
Forum Update on Monday, May 27th 2025

Embedding an External Qt Application on to another QML Application Screen in Linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 332 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.
  • R Offline
    R Offline
    rajesh_r
    wrote on last edited by
    #1

    Hi,
    I am trying to embed an external application which was developed using Qt into an QML application screen in linux, I just have the external application executable. I am able to load the application using QProcess, but i am not able to embed/fit the external application on my QML application screen. Kindly Help me if anyone have done this task or any web links containing documentation to achieve this.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dkroese
      wrote on last edited by
      #2

      I'm also trying to do this same problem.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dkroese
        wrote on last edited by
        #3

        I have a paid qt support account so asked this same question there. looks like it's possible, but 1. OS dependent and 2. has some major downsides. In my case i do have the source code for embeded project so i'm just going to merge two projects.

        heres their response for reference.
        "It would likely be easier if you could merge the two projects together.

        On Linux side, embedding external windows should be possible with X11. Use QWindow::fromWinId() to create a handle, then setParent() with your real application window. Note that this window will still be its own window, but it is just stuck there. So nothing in the main application window can go over this content. There are some issues with this though. Focus handling for example.

        If you need to support Wayland, I suggest merging the two projects. But if that is not possible, it could be doable by creating your own Wayland compositor within your application and make the other application open inside it.

        If you are running it on EGLFS, there is no embedding there and you need to merge them as they would fight over the framebuffer."

        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