Getting a list of window WIds in QT
问题 I'm writing a library in QT which will take screenshots of arbitrary external windows. I know how to take the screenshot using QScreen::grabWindow() , but this takes as an argument a WId , and I would like to know if there is a way to get a list of WId s for all windows on the screen and/or desktop (or something similar, such as getting a WId for a specific window using a title name), via QT. I am aware that I can do this in a platform dependent way, such as EnumWindows in Windows, but I was