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
Contributor
Posts: 11
Registered: ‎12-27-2012
My Device: bb10 developer alpha

Landscape Orientation QT2BB10

Hello

I use qt and quick to develop applications for bb10,I have encountered
a problem,

how to lock landscape mode in qt/quick project.

I have changed the descriptor file to landscape mode and screen
orientation in main.cpp to lock landscape mode, but still can't
landscape the application

some times when i succeed to run at landscape mode the application
crashes when go back to portrait at running time.

and this shown on the console

///////////////

Qml debugging is enabled. Only use this in a safe environment!

Unsupported query type: 100

Unsupported query type: 0

QDeclarativeDebugServer: Waiting for connection on port 3768...

QBBWindow: invalid buffer count. Expected = 2, got = 1

//////////////

what i can do for this problem?


Thanks

Developer
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Landscape Orientation QT2BB10

I've just got the same when taking a plain(ish) Qt app which used to work on BB10. Switching from portrait to landscape by rotating the device:

 

  1. Redraws the landscape view in the bottom left corner
  2. Crashes with a QtFatalMsg with text:

 

"QBBWindow: invalid buffer count. Expected = 2, got = 1"

 

This used to work, but isn't working any longer with the latest NDK (10.0.9, build ID = v201212072306) and Dev Alpha A image (10.0.9.1675)

__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Developer
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Landscape Orientation QT2BB10

If I start the app in landscape, it's the switch to portrait which kills it.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Developer
Posts: 44
Registered: ‎06-16-2012
My Device: BB10 Dev Alpha

Re: Landscape Orientation QT2BB10

I get a similar problem with a Qt/C++ app when running my app installed on the Dev Alpha. My bar-descriptor.xml file has the following:

 

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

 

----------------------------------------------------------------------------------
Blog: http://partialpivot.blogspot.co.uk/
Contributor
Posts: 11
Registered: ‎12-27-2012
My Device: bb10 developer alpha

Re: Landscape Orientation QT2BB10

[ Edited ]

Guys i think its BB10 plugin Bug!!!

 

i solved it by lock orientation on portrait and rotate qml views 90 degrees

:smileyhappy:

 

Developer
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Landscape Orientation QT2BB10

yalnte, even with autoOrients: false?

 

My bar-descriptor.xml contains:

 

    <initialWindow>
        <autoOrients>true</autoOrients>
        <systemChrome>none</systemChrome>
        <transparent>false</transparent>
    </initialWindow>
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Developer
Posts: 44
Registered: ‎06-16-2012
My Device: BB10 Dev Alpha

Re: Landscape Orientation QT2BB10

[ Edited ]

Yes :smileysad:

 

It runs fine when executed via the IDE or when holding the Dev Alpha in landscape.

 

If I open my app when holding it in portrait it regularly re-orientates and resizes the display to match portrait mode. My app is unusable in this mode so I close it down, but I think it crashes if left like this.

 

Edit: I'm using Dev Alpha v 10.0.9.1675 and BB10 native SDK 10.0.9.1673

----------------------------------------------------------------------------------
Blog: http://partialpivot.blogspot.co.uk/
Developer
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Landscape Orientation QT2BB10

I can't find an appropriate JIRA issue, anyone got 5 minutes to raise one?

 

https://www.blackberry.com/jira/browse/BBTEN

 

My own dev environment has stopped talking to the Dev Alpha, so I can't provide much in the way of different usages at the moment.

__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Developer
Posts: 44
Registered: ‎06-16-2012
My Device: BB10 Dev Alpha

Re: Landscape Orientation QT2BB10

[ Edited ]

Have opened an issue here - hope this describes it sufficiently:

 

https://www.blackberry.com/jira/browse/BBTEN-610

----------------------------------------------------------------------------------
Blog: http://partialpivot.blogspot.co.uk/
Developer
Posts: 34
Registered: ‎06-19-2012
My Device: BlackBerry Z10 Ltd Edition

Re: Landscape Orientation QT2BB10

[ Edited ]

Cool, thanks! Unfortunately, RIM are really trying my patience with stunts like:

 


You cannot view this issue because you are not the issue reporter or assignee, a member of the project group, or a member of the issue group and this issue is closed or in triage.


So, until it's triaged by someone suitably privileged, we can't see it. Have you included a link to this thread?

__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org