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
zing0000
Posts: 3
Registered: ‎12-25-2012
My Device: BB10 + Playbook
My Carrier: 6508236685

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?

 

 

 

Please use plain text.
Developer
oliver_kranz
Posts: 216
Registered: ‎09-18-2009
My Device: Z10
My Carrier: O2

Re: BB10 Dev Alpha orientation

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

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

 

Please use plain text.
New Contributor
zing0000
Posts: 3
Registered: ‎12-25-2012
My Device: BB10 + Playbook
My Carrier: 6508236685

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.

 

Please use plain text.
BlackBerry Development Advisor
smcveigh
Posts: 662
Registered: ‎11-29-2011
My Device: developer
My Carrier: other

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)

Please use plain text.