You can use Windows API functions to read the position (left and top, or x and y) of a window that does not belong to your program in Qt. GetWindowRect function allows you to read these values and also right and bottom which can then be used to extract width and height of that window. Note that you need to know the title of your target window or else it is not possible to achieve that. Follow th simple steps below to be able to do this.
Continue reading “How to get position and size of another program’s window in Qt?”