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. QtQuick 2 multiple processes
Forum Update on Monday, May 27th 2025

QtQuick 2 multiple processes

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.3k 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.
  • B Offline
    B Offline
    brunowonka
    wrote on last edited by
    #1

    Hello,
    I need to have the following app architecture (QtQuick2, Qt 5.3):

    • Master app
      ** child app 1
      ** child app 2

    Each app has its own process, Master app enables two views that are later passed onto new processes so they can render themselves inside master app's window. Master app can move the "windows" around freely, controlling where on the screen the children apps are rendered.

    I've been trying to do that with QWindow->winId and QWindow::fromWinId with no success.
    Must I use QWidget::createWindowContainer() for that?? I'm not really familiar with QWidget apps, but it says on the docs: "Using many window container instances in a QWidget-based application can greatly hurt the overall performance of the application."
    Appreciate any help.

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, and welcome to the Qt Dev Net!

      [quote]Master app enables two views that are later passed onto new processes so they can render themselves inside master app’s window.
      ...
      I’ve been trying to do that with QWindow->winId and QWindow::fromWinId with no success.[/quote]It's the other way round. QWindow::fromWinId() lets the master find the window ID of the child, and take ownership of it.

      [quote]Master app can move the “windows” around freely, controlling where on the screen the children apps are rendered.[/quote]I don't understand: Why do you want multiple processes? Why not just create multiple windows in one process?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • B Offline
        B Offline
        brunowonka
        wrote on last edited by
        #3

        Hello! thanks for the warm welcome!

        bq. It’s the other way round. QWindow::fromWinId() lets the master find the window ID of the child, and take ownership of it.

        I see, I can't seem to get a QWindow to be actually INSIDE another one though, maybe I'm going at it wrong.

        bq. I don’t understand: Why do you want multiple processes? Why not just create multiple windows in one process?

        I'm trying to do something like a 'widget' dashboard. By definition, the 'widget' apps are untrusted code, so I'd like them to run on a completely detached process for security reasons.

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          [quote]I see, I can’t seem to get a QWindow to be actually INSIDE another one though, maybe I’m going at it wrong.[/quote]Try setting the window's parent. Child windows will be drawn within the boundaries of their parent.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          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