Namespaces
Variants
Actions
Revision as of 15:39, 23 July 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Code Example for Portrait / Landscape Autorotate Layout in Qt

Jump to: navigation, search
Article Metadata

Code Example
Tested with
Devices(s): 5800 XpressMusic, N900

Compatibility
Platform(s): S60 5th Edition, Maemo 5

Article
Keywords: QLayout, Rotation, Portrait, Landscape, Horizontal, Vertical
Created: juergenm (20 Mar 2010)
Last edited: hamishwillee (23 Jul 2012)


Contents

Overview

This Article gives a full Qt Creator Code Example Project for portrait/landscape autorotate layout management as described in the article How to create flexible Portrait - Landscape rotation layout in Qt

This code example can be self-signed.


Source files

Complete Source files and header files are part or the attached ZIP archive, that also includes the Qt Creator .pro file.

Postconditions

When successfully building and running this code example, the result should look like the attached screenshots show:

Portrait (Vertical) Position of the Phone (here 5800 Xpress Music)

Applying in this example case a QVBoxLayout.

SamplePLLayout ScreenshotPortrait.jpg

Landscape (Horizontal) Position of the Phone (here 5800 Xpress Music)

Applying in this example case a QHBoxLayout.

SamplePLLayout ScreenshotLandscape.jpg

Test application

Here the complete Sample Code Archive for download:

File:SamplePLLayout.zip

264 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved