PDA

View Full Version : Get the winId from a QProcess



Zioza
31st July 2013, 21:45
Hi everyone,

I got stuck on a problem today !
Actually, I create a process with QProcess, and this process opens a window.
And what I want is to find the winId of the window opened by this process.

Is there a way to do that with Qt ? Or at least by using the Xlib or anything else ?

Thank you in advance !

anda_skoa
1st August 2013, 08:40
Well, if you have control of the child program, it could write its winId to stdout or a different form of communication with the parent process.

Otherwise this might help http://stackoverflow.com/questions/151407/how-to-get-an-x11-window-from-a-process-id

Cheers,
_

Zioza
1st August 2013, 12:33
Well, unfortunatly I dont have control on the child application.
But your link seems to answer my question, i'll try it asap and I'll give you my feedback about it !