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-20-2012 10:24 AM
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.
12-20-2012 10:55 AM
Qt app (I know nothing about QtQuick) is successfully locked with
in .bar file.
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.
2 weeks 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
has the same problem. OK with orientation = Auto, but not when "fixed"