Suppose the screen resolution is 800x600, resize(1000,1000) does not work. It will resize the widget to the size of the screen, i.e., 800x600. But resize(300,300) works.i.e., can resize the widget smaller than the screen.

So how to resize a widget to be larger than the screen?