Quote Originally Posted by shyam prasad View Post
"Jpn" although grabWindow() can work for me but the whole thing is that how can i know in my QT app that which is active window and how do i get winId of the active window.
I'm afraid you need a platform dependent solution for that.

Something like XGetInputFocus(), GetActiveWindow() and so on..