Results 1 to 4 of 4

Thread: spy++ like functionality with Qt / X11

  1. #1
    Join Date
    Aug 2006
    Posts
    90
    Thanks
    6
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default spy++ like functionality with Qt / X11

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: spy++ like functionality with Qt / X11

    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.

  3. #3
    Join Date
    Aug 2006
    Posts
    90
    Thanks
    6
    Thanked 4 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: spy++ like functionality with Qt / X11

    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.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: spy++ like functionality with Qt / X11

    Qt definitely doesn't support such things.

Similar Threads

  1. Replies: 3
    Last Post: 1st April 2011, 04:58
  2. portable getopt() functionality
    By KShots in forum Qt Programming
    Replies: 7
    Last Post: 14th March 2011, 18:19
  3. Replies: 13
    Last Post: 15th December 2006, 11:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.