PDA

View Full Version : spy++ like functionality with Qt / X11



bpetty
23rd April 2007, 23:55
I was wondering... does Qt offer an easy way to get the handle from another process or control... and to read captions from that handle? I can do this using the win32 api, but I would like to try to figure out how it can be done with x11. I didn't know if Qt offered a cross platform way of doing this. I have not seen a single Linux application be able to do this. I know it can't be that hard.

wysota
24th April 2007, 00:52
Linux applications don't do it because it's a StupidAndUnsafeThingTM. If you need to "speak" to another application proper IPC mechanisms are used, like sockets (including D-BUS), shared memory or message queues.

bpetty
24th April 2007, 17:13
I don't want to "speak" to the application... I just want my program to be able to read data from it. Example: What a user has typed in an edit control. D-Bus is not good for that.

wysota
24th April 2007, 22:10
Qt definitely doesn't support such things.