QWorkspace is deprecated. Use QMdiArea with QMidiArea::addSubWindow() instead. There you shouldn't face the problems.