12-27-2012 04:32 AM
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
01-02-2013 04:47 PM
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:
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)
01-02-2013 05:16 PM
01-02-2013 05:19 PM
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>
01-02-2013 05:24 PM - edited 01-02-2013 05:25 PM
Guys i think its BB10 plugin Bug!!!
i solved it by lock orientation on portrait and rotate qml views 90 degrees
![]()
01-02-2013 05:31 PM
yalnte, even with autoOrients: false?
My bar-descriptor.xml contains:
<initialWindow>
<autoOrients>true</autoOrients>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>
01-02-2013 05:43 PM - edited 01-02-2013 05:45 PM
Yes ![]()
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
01-02-2013 05:47 PM
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.
01-02-2013 05:53 PM - edited 01-02-2013 06:14 PM
Have opened an issue here - hope this describes it sufficiently:
https://www.blackberry.com/jira/browse/BBTEN-610
01-02-2013 06:24 PM - edited 01-02-2013 06:24 PM
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?