×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    21

    Orientation lock does not work on nokia belle fp1

    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
    Join Date
    May 2011
    Posts
    35

    Re: Orientation lock does not work on nokia belle fp1

    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
    Join Date
    Oct 2011
    Posts
    7

    Re: Orientation lock does not work on nokia belle fp1

    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
  •  
×