I use Qt Embedded, which directly draws to framebuffer. Is there a way to get pid of focused window? I tried to use QWSServer, but I didn't find all API for this. Thank You!
Asked
Active
Viewed 121 times
0
-
you mean only qt app or any ? – Blueman Oct 11 '13 at 10:33
-
yes, only qt applications. All my gui is built on qt – user2319183 Oct 11 '13 at 12:35
1 Answers
1
It's not so easy, checked it and PID can be found only by QCoreApplication::instance()->applicationPid()
. Any reason to use PID ? maybe simple use QWSWindow::client()->clientId()
to see it is a different app ?

Blueman
- 781
- 10
- 13