[Qt-interest] Fwd: how to set the position of external program in QProcess()

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Mon Dec 1 12:38:22 CET 2008


chandrasekar wagmare wrote on Monday, December 01, 2008 6:21 AM:

> 2008/12/1 chandrasekar wagmare <sekarwagmare at gmail.com>:
>
>> no the program is not written by me ...  actually its a gtk program
>> ...  any way thanks for reply

You have no influence on where the newly started application is positioned: that's either done by the Window Manager or the application itself.

You can try whether the application accepts some command line arguments which influence its position and size: I am no X11 expert, but chances are that every application which is based on Xlib (?) accepts a set of default arguments - I remember you can pass along the "X11 resources" (colors to use etc.) as well.

And just now I got curious and came up with this one within 5 seconds in Google ("X11 command line options" - the query was even auto-completed by Firefox/Google, so I am not the first asking this question ;):

  http://search.cpan.org/~srezic/Tk-804.028/pod/CmdLine.pod

Go for the "geometry" option, maybe that works ;)

Cheers, Oliver





More information about the Qt-interest-old mailing list