Not positive but I believe this should work:

Qt Code:
  1. const QPtrList<QWSWindow> windowList;
  2. QWSServer server;
  3. windowList = server.clientWindows();
To copy to clipboard, switch view to plain text mode 

mAx