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. Run Qt application inside window of my main Qt application
Forum Updated to NodeBB v4.3 + New Features

Run Qt application inside window of my main Qt application

Scheduled Pinned Locked Moved Unsolved General and Desktop
linuxwindowprocess
4 Posts 2 Posters 564 Views 1 Watching
  • 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.
  • L Offline
    L Offline
    lartimus
    wrote on 6 May 2021, 15:45 last edited by
    #1

    Does anyone have a good example of how to run one Qt application inside a window of another Qt application on a Linux desktop system?
    I have Googled this, but not found a complete example.
    Basically I need some sort of container Qt application (A) that starts up another Qt application (B), and shows B inside a window of A.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VRonin
      wrote on 6 May 2021, 16:05 last edited by
      #2

      Do you have access to the source code of B?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      1
      • L Offline
        L Offline
        lartimus
        wrote on 10 May 2021, 08:53 last edited by
        #3

        @VRonin Yes I will have access to the source code of A and B.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          VRonin
          wrote on 10 May 2021, 10:45 last edited by
          #4

          Then it's trivial. Look at the main function of B, it will probably instantiate a main widget, you can use that as a child widget of your application

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          2

          2/4

          6 May 2021, 16:05

          • Login

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