Results 1 to 3 of 3

Thread: Embed a running process to a container

  1. #1
    Join Date
    Mar 2010
    Posts
    77
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Embed a running process to a container

    Hi,

    i have 9 running application, i want create a widget, with 3 frame (QX11EmbedContainer) and 3 combobox to choose which application must show in current frame, can i change current process with a running process in a frame?

    thanks.

  2. #2
    Join Date
    Aug 2012
    Location
    Montreal
    Posts
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Embed a running process to a container

    Well, since no one has answered you yet, here's my two cent. It would be nice to have a little bit more information about what you are trying to achieve and in what context. Right now, I have to assume you are doing this on Linux since you use the QX11 classes and that you want to change a process into an other one. Well, I don't think that is possible. On Linux, if you call exec* (i.e. execvp(execPath, args) function) the current process is replaced by the newly invoked process and exec* never returns. However, I know of no functions that will replace the current process with an already running one.

    What you could do is to have your QX11EmbedContainer (http://doc.qt.io/qt-4.8/QX11EmbedContainer) become "full screen" within your application. Since the documentation for the QX11EmbedContainer state that all events are propagated down, it would basically result in the same as having the current process replaced by the embedded one.

    Maxime

  3. #3
    Join Date
    Mar 2010
    Posts
    77
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Embed a running process to a container

    i agree with you i cant do something like this, so i used QStackedwidget and i send to every process that is not used to sleep for long time and i wake them with another signal, i cant think of better plan, if you have please suggest.
    thanks

Similar Threads

  1. qt window close but process still running
    By sazzad08 in forum Qt Programming
    Replies: 12
    Last Post: 2nd January 2013, 07:35
  2. Get All Running Process Win32
    By METEOR7 in forum Qt Programming
    Replies: 7
    Last Post: 4th December 2011, 13:05
  3. Get Process ID for a running application
    By bob2oneil in forum Qt Programming
    Replies: 5
    Last Post: 10th September 2011, 21:58
  4. Destroyed while process is still running
    By qtzcute in forum Qt Programming
    Replies: 5
    Last Post: 23rd July 2009, 08:26
  5. Check wheter a process is running
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2006, 12:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.