12-18-2012 11:38 AM
I use qt and quick develop applications for bb10,I have encountered a problem,
how to lock landscape mode in qt/quick project.
I have tested QQmlApplication and descriptor.bar to lock ,but can work,can somebody help?
12-19-2012 10:32 PM
No one know how to do?
12-20-2012 10:24 AM
Hi,
I'm afraid it requires some additional hacking. RIM doesn't seem to fully test the QML framework without cascades. Configuration in bar descriptor file is not enought. I tried several ways without full success. RIM, please share any example of pure QtQuick1 application which supports landscape mode only. I don't know if it's a problem of DevAlpha device or maybe it requires additional changes to the qmlapplicationviewer or the application itself.
Best regards,
Maciej Kujalowicz
Trismer Technologies
12-20-2012 10:55 AM
Qt app (I know nothing about QtQuick) is successfully locked with
<initialWindow>
<aspectRatio>portrait</aspectRatio>
<autoOrients>false</autoOrients>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>
in .bar file.
12-20-2012 11:18 AM
I don't know do you have tested in simulator or on device,but with the gold release version ,this can not work!
12-20-2012 11:23 AM
I agree, it works perfectly, but for Qt Cascades app. Also as far as I remember it worked on Blackberry Playbook OS as well. Try to create any QtQuick application in Qt Creator for BB10. With the mentioned settings it doesn't lock the landscape mode on BB10 DevAlpha. Calling setOrientation on qmlapplicationviewer doesn't help either. There is a tip mentioned during BBJam America related to OpenGL viewport:
It helps partially.
Best regards,
Maciej Kujalowicz
Trismer Technologies
a week ago
This is a problem for those of us trying to make portable applications with Qt.
My App is stuck, rejected at the Store, because of this. Expecting the user to remember to hold the device in landscape mode when launching the App is not a solution!
Even the porting demo code at
http://developer.blackberry.com/native/documentati
has the same problem. OK with orientation = Auto, but not when "fixed"