Below I have described the method to get active (focused) windows title using Qt in Linux systems (Such as Ubuntu, CentOS etc.) Basically you use xdotool with two parameters mentioned below to get the title of current window which has the focus.
Continue reading “How to Get the Topmost Window Title using Qt/C++ (in Linux)”How to Get the Topmost Window Title using Qt/C++ (for Windows)
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.
Continue reading “How to Get the Topmost Window Title using Qt/C++ (for Windows)”