QWidgetPrivate::create_sys (){... if (topLevel) { if (parentWidget) { // if our parent stays on top, so must we QWidget *ptl = parentWidget->window(); if(ptl && (ptl->windowFlags() & Qt::WindowStaysOnTopHint)) flags |= Qt::WindowStaysOnTopHint; }...