try not passing componentArea as parent when you create that QMdiSubWindow