How to get the type of the element in focus in any third-party application?

There is a virtual keyboard. You need to open it when the focus is in a text box. The problem is that this should work with any third-party applications. Tools: Qt, C++, Xlib
April 19th 20 at 12:37

Find more questions by tags C++QtX Window System