10-17-2012 02:05 AM - edited 10-17-2012 02:06 AM
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.
10-17-2012 03:07 AM
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