use QDesktopWidget and then detect screensize changes by polling every few seconds using a separate QThread and appropriately resize your widget.

This is 1 method which I could think immediately. Not sure if it is good enough as it wud waste CPU cycles.