In order to fit your top most widget to the screen size you can use QDesktopWidget for the screen size and resize your top widget based on that.
For the widgets inside your widget use layouts.