Qt 5.5
Screen Orientation
Qt 5.5.1 Reference Documentation
Screen Orientation
This example shows how to implement screen orientation support for your application.