[Qt]: Use resizeGL event rather than resizeEvent.