Welcome!

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

Reply
New Contributor
Posts: 3
Registered: ‎12-25-2012
My Device: BB10 + Playbook

BB10 Dev Alpha orientation

My Qt5 App is designed to launch and remain locked in landscape orientation. The manifest contains,

 

==================

<initialWindow>
  <systemChrome>none</systemChrome>
  <transparent>false</transparent>
  <aspectRatio>landscape</aspectRatio>
  <autoOrients>false</autoOrients>
</initialWindow>

==================

 

When I debug from Creator2.6.2, it works correctly, and ignores the actual orientation of the device.

When I launch from the device it always opens in portrait, anchored top left.

 

Is the manifest the boss, or could something else be overriding the operation? If so, what?

 

 

 

Developer
Posts: 216
Registered: ‎09-18-2009
My Device: Z10

Re: BB10 Dev Alpha orientation

Yes, in QML you can set the supported display orientation.

NavigationPane {
    onCreationCompleted: {
        OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.DisplayLandscape;
    }
}

 

New Contributor
Posts: 3
Registered: ‎12-25-2012
My Device: BB10 + Playbook

Re: BB10 Dev Alpha orientation

Are you saying that this QML (or the equivalent C++) overrides statements in the manifest.

 

To recap, my question asks why my device orientation changes even though I fixed landscape in the manifest.

 

BlackBerry Development Advisor
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: BB10 Dev Alpha orientation

those bar-descriptor lines work fine in my apps, but I am building C and Cascades apps w/ Momentics. 

Might be a qt-creator issue?  (eg. it may be forcefully overriding the orientation at startup)