Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Orientation Lock is not working when set with qt sdk 1.1



  • Hello friends,
    I tried to lock the screen orientation with options given with neq qt sdk 1.1 and tried to lock in portrait mode...and tested on nokia X6 and nokia 5230..but its not working...

    regards
    imrrk



  • I heard similar issues from other people, too. I think the workaround was to use some S60 framework calls (ugh, uggly). Please report that bug on bugreports.qt.nokia.com, if you have the details available.



  • I tried on N8, its working fine. This is the code information I have

    In TestApp.pro file
    @# Avoid auto screen rotation
    DEFINES += ORIENTATIONLOCK
    @

    In main.cpp file
    @viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);@


Log in to reply