Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User mots_g's Avatar
    Join Date
    Feb 2011
    Posts
    21
    Hi,
    I upgraded my phone OS from Symbian Belle to Nokia Belle FP1. My screen orientation lock stopped working and now the app rotates with the phone. My code earlier worked fine on Symbian Belle and other predecessors.

    viewer = new QmlApplicationViewer();
    viewer->setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);
    and in my pro file, I define:
    DEFINES += ORIENTATIONLOCK

    What could I be missing?

    Thanks
    mots

  2. #2
    Registered User duncan.waugh's Avatar
    Join Date
    May 2011
    Posts
    35
    While not cross-platform, and so may not be what you are looking for, I can confirm that the embedding of the native code method of implementing the screen lock is still working correctly under Belle FP1:

    http://qt-project.org/wiki/How_to_Lo...ion_in_Symbian

  3. #3
    Registered User mikajk's Avatar
    Join Date
    Oct 2011
    Posts
    7
    Hi,
    I figured out that if you call setOrientation() before setSource()/setMainQmlFile() the lock is not effective. If you call it after setSource()/setMainQmlFile() it seems to work.

    EDIT: While the above was correct for the template app, unfortunately it looks like it did not offer a universal fix for this issue...
    Last edited by mikajk; 2012-05-18 at 07:25.

Similar Threads

  1. How to lock orientation in QML
    By nobody_gao@sina.com in forum [Archived] Qt Quick
    Replies: 3
    Last Post: 2011-07-28, 22:03
  2. Lock Orientation
    By Joe_Nokia in forum Nokia Asha Web Apps
    Replies: 1
    Last Post: 2011-06-20, 05:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved