Results 1 to 3 of 3

Thread: Get the winId from a QProcess

  1. #1
    Join Date
    Jul 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Get the winId from a QProcess

    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 !

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Get the winId from a QProcess

    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/1...m-a-process-id

    Cheers,
    _

  3. #3
    Join Date
    Jul 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Get the winId from a QProcess

    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 !

Similar Threads

  1. winId() and UI events
    By allexz in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2013, 00:05
  2. About FramelessWindowHint and winId
    By Wong in forum Qt Programming
    Replies: 2
    Last Post: 19th May 2011, 08:19
  3. winId() crashed
    By nedivi in forum Qt Programming
    Replies: 1
    Last Post: 6th March 2011, 23:03
  4. Can't get Widget from WinID()
    By abbapatris in forum Qt Programming
    Replies: 3
    Last Post: 9th July 2008, 17:25
  5. Winid issue with Qt
    By Pragya in forum Qt Programming
    Replies: 6
    Last Post: 7th June 2007, 13:10

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
  •  
Qt is a trademark of The Qt Company.