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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
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?

 

 

 

Developer
Posts: 217
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;
    }
}

 

New Contributor
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.

 

Highlighted
BlackBerry Development Advisor
Posts: 683
Registered: ‎11-29-2011
My Device: PRIV
My Carrier: Rogers

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)