Qt-interest Archive, July 2007
fork exec
Message 1 in thread
Hello,
1) I want in my application (that's built on QT) to take control over another process that I've created with "QProcess".
The application is creating a window that I want to have control on - change the borders, remove some window features (like X (close) and "_" (minimize)).
2) Maybe before running exec, I can redirect it's X output to another window that I can create.?
Please help!, I think that I've read about half of all internet sites.
Thanks.
--
[ signature omitted ]
Message 2 in thread
On 18.07.07 21:22:14, Gregory Chris wrote:
>
> Hello,
>
> 1) I want in my application (that's built on QT) to take control over another process that I've created with "QProcess".
> The application is creating a window that I want to have control on - change the borders, remove some window features (like X (close) and "_" (minimize)).
Unless that application provides command line arguments to change these
things you can't do that with QProcess - AFAIK.
> 2) Maybe before running exec, I can redirect it's X output to another window that I can create.?
Not via QProcess I think. Also redirecting X output has nearly nothing
to do with Qt, you probably get better answers in a X11 forum/list.
Andreas
--
[ signature omitted ]
Message 3 in thread
On 7/18/07, Gregory Chris <sgchris@xxxxxxx> wrote:
>
>
> Hello,
>
> 1) I want in my application (that's built on QT) to take control over
> another process that I've created with "QProcess".
> The application is creating a window that I want to have control on -
> change the borders, remove some window features (like X (close) and "_"
> (minimize)).
>
> 2) Maybe before running exec, I can redirect it's X output to another
> window that I can create.?
For the second option, try looking at QX11EmbedContainer (
http://doc.trolltech.com/4.3/qx11embedcontainer.html ). I don't have any
experience doing this, but I have seen other people mention it.
Tom
Message 4 in thread
You have a few options. You can use XReparentWindow if you need to
embed the window (this is wrapped up by Qt in QX11EmbedContainer), and
you can manipulate the hints of the window you just want to do stuff
like hide the close buttons. For an example of how to do the latter
look at http://websvn.kde.org/trunk/KDE/kdebase/runtime/kstart/
Note these are X11 specific tricks.
Cheers
Rich.
--
[ signature omitted ]