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