×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    26

    Exclamation Screen orientation lock won't work if application is not launched in the right orient

    Hi !

    I am trying to build an application using QtQuick 1.1, Qt 4.7.4 and deploying on a Nokia N8.

    I have locked the screen orientation with :

    Code:
        viewer->setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);
    It works great as long as the application is launched in PortraitMode from the applications dashboard. But if my phone is in landscape, my application will display in portrait but resize to half of the screen only.

    Any idea ?

    Thanks

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Screen orientation lock won't work if application is not launched in the right or

    From one line of code, it is difficult to find where is problem.
    Any way,This topic was discussed many times in the Discussion board.

    Lock orientation of the phone for specific QML pages
    How to lock orientation in QML

    regards,
    rahul

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    26

    Re: Screen orientation lock won't work if application is not launched in the right or

    Solved it ! viewer setOrientation should remain in automatic and lock be done with orientationLock property of Page's QtComponent

Similar Threads

  1. Lock Orientation
    By Joe_Nokia in forum Nokia Asha Web Apps
    Replies: 1
    Last Post: 2011-06-20, 05:16
  2. Replies: 3
    Last Post: 2010-09-20, 08:57
  3. Screen Orientation detection doesnt work on GT-i8910
    By crazysoft in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-08-14, 19:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •