If you are looking for a method to get a window's window ID, then have a look at QWidget::winId()

Cheers,
_