Discussion Board

Results 1 to 3 of 3
  1. #1
    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
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,293
    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
    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. [moved] Hybrid Application Generator and screen orientation
    By OscarBernabeu in forum Symbian Web Runtime
    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
  •  
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