For Each Windows (gb.qt4)

Dim hWindow As Window
For Each hWindow In Windows
  ...
Next

Enumerates each window created by your application.