[Qt-qml] Orientation is always landscape on N9

Shawn Rutledge shawn.t.rutledge at gmail.com
Tue Oct 25 11:39:58 CEST 2011


I was wondering about this too.  I verified that inside
QmlApplicationViewer, setAttribute(Qt::WA_AutoOrientation) is really
called, but if you use plain QML (QtQuick 1.0) on the N9, the app will
be stuck in landscape mode, whereas on the N900 it will auto-rotate.
But if you use Meego components instead (e.g. PageStackWindow) it will
auto-rotate on the N9.  This seems like a bug to me, so I wrote it up:

https://bugreports.qt.nokia.com/browse/QTBUG-22300

On Mon, Oct 24, 2011 at 10:17 AM, Artem Marchenko
<artem.marchenko at gmail.com> wrote:
> Hi David
> What I used lately on Harmattan for locking one particular page in portrait
> is Page's orientationLock property:
>  orientationLock: PageOrientation.LockPortrait
> BR,
> Artem.
> On Oct 24, 2011, at 10:13 AM, <david.zhang.liang at nokia.com>
> <david.zhang.liang at nokia.com> wrote:
>
> Hi,
>
> When I tried to deploy a QtQuick application to N9, the orientation is
> always landscape (even
> withviewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);).
>
> I know the “PageStackWindow” works but I don’t want to use Harmantan widgets
> and wants my app to work on both N9, Desktop and Symbian.
>
> Are any ways of correcting that problem?
>
> Thanks.
>
> David
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>
>


More information about the Qt-qml mailing list