Set a Qt::WA_NativeWindow attribute for each widget you want to have access to or call its QWidget::winId() method which will return you the handle (and create it before doing that).