I have another question. QWidget::setWindowState() will change the winId(). But I don't want to have the QWidget::winId() changed, because I need it for gstreamer.

Is there a way to toggle fullscreen without changing the winId() ?