Hi, ~TND5!
Welcome to Qt Developer Network!
As DerMan explained - any Qt top-level widgets without parents displays with QFrame. So if you run this code:
@
QWidget a; // a - without parent
a.setGeometry(10,10,300,200); // x = 10, y = 10, width = 300, height = 200
a.show(); // show it
@
It will show new window which will contain all that a contains. But if you run this code in MainWindow for e.g:
@
QWidget a(this); // a - with parent
a.show(); // show it
@
It will display a in this widget.