Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Regular Contributor
Posts: 56
Registered: ‎08-21-2012
My Device: BB10
My Carrier: RIM

Changing orientation of application dynamically.

[ Edited ]

Hi everyone,

In my application I want one screen to be set as landscape oriented. It's one of the Tab of the TabbedPane. Presently I'm using following snippet on Tab triggered.


Tab {
id: tab
title: "Tab 3"
imageSource: "asset:///images/icon_active.png"
onTriggered: {
OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.DisplayLandscape;


the orientation of the application gets changed to landscape but the UI gets disturbed (stretched).














Is what the QML preview shows: landscape mode.




If I set the orientation of app to Landscape from bar discriptor file then the UI stays fine. But that's not what I want. Where am I doing wrong? Is there any other way to change the orientation dynamically??




Thanks in advance.


Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Changing orientation of application dynamically.

there are still some scenarios where changing from Landscape to Portrait or back stretches or distorts the UI.

Best way is to make a small example reproducable and submit at Issue Tracker

ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner