Paints the frame and the contents. Handles resize events for the frame. Adjusts the frame rectangle for the resized widget. The frame rectangle is elastic, the surrounding area is static. The resulting frame rectangle may be null or invalid.
Nothing is done if the frame rectangle is a null rectangle already.
Reimplemented from QWidget. The frame rectangle is the rectangle the frame is drawn in. By default, this is the entire widget. Reimplemented in QWidgetStack. The style is the bitwise OR between a frame shape and a frame shadow style.