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 Developer
Posts: 27
Registered: ‎09-18-2013
My Device: Z10
My Carrier: +

Can't control the orientation in Z30

Hi Guys.

 

I'm using portrait orientation for my project:

 

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

 

This is my follow:

                                    NavigationPane

home.qml (portrait) ----------------------> cam_list.qml (portrait) ------------> cam_view.qml (landscape)

 

 

 home.qml

    onCreationCompleted: {
        // We want to only display in portrait-mode in this view.
        OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.DisplayPortrait;
    }
 
    onTopChanged: {
        // We want to only display in portrait-mode in this view, so if it has been changed, let's reset it.
        OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.DisplayPortrait;
    }

 cam_list.qml 

 

onCreationCompleted: {
            OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.DisplayPortrait;
}

 

cam_view.qml

onCreationCompleted: {
            // We want to only display in portrait-mode in this view.
            OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.DisplayLandscape;
        }

Everything works like a champ.

                                                                                         

home.qml (portrait) ------> cam_list.qml (portrait) ----> cam_view.qml (landscape) ---(back)--> cam_list.qml (portrait---(back) --> home.qml (portrait).

 

But i have this problem only in Z30 (BB 10.2)

 

home.qml (portrait) ------> cam_list.qml (portrait) ----> cam_view.qml (landscape) ---(back)--> cam_list.qml (landscape) ---(back) --> home.qml (landscape).

 

 

How can i fix this?

 

Thank you

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Can't control the orientation in Z30

You might like to test if this is a 10.2 issue rather than a Z30 issue, try it out in the simulators.


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 27
Registered: ‎09-18-2013
My Device: Z10
My Carrier: +

Re: Can't control the orientation in Z30

It's run OK in my BB simulator 10.2 with my Macbook
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Can't control the orientation in Z30

[ Edited ]

If you've identified this as a Z30 issue then you need to raise a ticket in JIRA.

 

Sanity check first though, you haven't set the Rotation Lock to on on the Z30 have you?

Your sequence suggests not but... Smiley Happy

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Can't control the orientation in Z30

what OS is installed on Z30 ?

 

10.2.0.????

-------------------------------------------------------------------------------
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
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Can't control the orientation in Z30

[ Edited ]

yep 10.2, although I still believe it depends on carrier.


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Can't control the orientation in Z30

should be minimum of 10.2.0.1767

 

but I noticed some curious even on 10.2.0.1767:

my bug reported here

http://supportforums.blackberry.com/t5/Native-Development/Cascades-10-2-problem-Cannot-assign-QObjec...

happens on 1767, but not on 1791

 

 

-------------------------------------------------------------------------------
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
Highlighted
New Developer
Posts: 27
Registered: ‎09-18-2013
My Device: Z10
My Carrier: +

Re: Can't control the orientation in Z30

There is no problem with my BB 10.2.0.1155 simulator