In this article I am going to describe how to get the title of the window which has the focus, or in other word is currently active. To be able to achieve this in Qt/C++ you need to use the operating system API functions, in this case Win32 API.
You can use ActiveX Control List application to get a complete list of currently installed and registered ActiveX (and COM of course) components that are available on the system.
To be able read PDF files in your Qt applications you can use any 3rd party libraries but my choice is to use Adobe Acrobat Reader ActiveX in a QAxWidget object. The approach is quite simple as long as you have Acrobat Reader ActiveX installed on your computer.
I wrote this program some time ago to change my Skype status to Online and Away at different hours during the day. I decided I could share the source code because it is a good example on how to connect to a COM library using Qt. Following should be noted about the source code provided […]