Qt Reference Documentation

QML Window Element

Provides a component that is normally the application's root component and handles transitions when the user rotates the screen. More...

Inherits Item

Inherited by ApplicationWindow.

  • List of all members, including inherited members
  • Properties

    Signals

    Detailed Description

    An application can be in the portrait or the landscape orientation. A user can physically rotate the device between these orientations, so you may want to layout the application's content differently depending on the screen's orientation. When the user rotates the screen, Window sends various signals at different phases of the rotation. Window handles also the resizing of the screen and possible transitions when the orientation changes. Normally all applications utilizing QtQuick Components for Symbian use Window as the root item.

    Property Documentation

    inPortrait : bool

    If the screen is in the portrait orientation, the value is true. If the screen is in the landscape orientation, the value is false.


    Signal Documentation

    Window::orientationChangeAboutToStart ()

    This signal is emitted when the screen orientation starts to change from one orientation to another. After this signal is emitted

    • you can start to prepare your application for the new screen orientation. For example, you can stop all screen animations.
    • the inPortrait property indicates the new orientation.

    Window::orientationChangeFinished ()

    This signal is emitted when the orientation change transition, for example screen transition animation, ends.


    Window::orientationChangeStarted ()

    This signal is emitted when the orientation change transition, for example screen transition animation, starts.