View Full Version : External Program Management with Qt

7th April 2009, 08:14

I'm trying to made an application that does the followig operation:
1) able to start an external program
2) show/hide external application when required
3) set on top or not the external program
4) move and resize the window of the external program

I'm using QT to be able to easily move the code to another target.
I found QProcess object that allows to start an external program, but with QProcess I did'n found how to show/hide and mainly how to manage the external program, I'm able only to kill it.

is there someone that can help me????

7th April 2009, 09:57
Is this external program an arbitrary program or did you write it yourself?

7th April 2009, 10:23
It is a general program, I haven't source code of it, but for sure I know that it is not a console application and it has a graphical window.

7th April 2009, 10:37
Then you won't be able to do it in a cross-platform way. On Windows you can use PostMessage/SendMessage, on Unix you have to use X11 calls. On other platforms you're on your own.

7th April 2009, 10:49
Ok, thanks...

so I need to use X11, because I want to use it on linux.
I have fedora 8 distribution and I can't change it.
do I need to install something to use X11 features?
where I can find documentation ???

thank you very much

7th April 2009, 10:52
You don't need anything extra. Just read XLib documentation.