Qt Quick Components

Window

Window is the root component for an application and handles the transitions when rotating the screen. More...

  • List of all members, including inherited members
  • Properties

    Signals

    Detailed Description

    An application can be in portrait mode or landscape mode. A user can physically rotate the device between these orientations and so you might want to layout the application content differently depending on the screen orientation. The Window component assists this kind of feature by sending signals at different stages of the transition.

    Property Documentation

    inPortrait : bool

    True if the window is in the portrait orientation, otherwise it is false and indicates the window is in landscape orientation.


    Signal Documentation

    Window::orientationChangeAboutToStart ()

    Signal that indicates the window orientation is about to start changing from one orientation to another so you can start preparing your application for the new orientation. For example, you could stop any screen animations while the orientation transition is taking place.

    When the signal is emitted, the inPortrait property already indicates the new orientation.


    Window::orientationChangeFinished ()

    Signal that indicates the orientation change transition has run to completion.


    Window::orientationChangeStarted ()

    Signal that indicates the orientation change transition has begun.