[Qt-interest] QProcess & windo handle
Malyushytsky, Alex
alex at wai.com
Tue Aug 2 21:42:35 CEST 2011
I don’t think Qt provides such functionality.
You might need to use native api for that.
For example under the Windows you might enumerate all top level windows and then GetWindowThreadProcessId on each one to see which ones match your PID.
Alex
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Folami Nguyen
Sent: Monday, August 01, 2011 8:26 AM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] QProcess & windo handle
Dear Qt experts,
I use QProcess with start method to start application.
I want to get window handle of launched application, I use EnumWindows in slot which is connected with started() signal of QProcess.
However, I cannot find windows with has process id is same with process id which I accquise from QProcess.
How can I achive my need?
Please help me.
Thanks & best regards
Phuoc Nguyen
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110802/ab7e64de/attachment.html
More information about the Qt-interest-old
mailing list