×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    3

    How to lock orientation in QML

    How to lock orientation in a QML application. Please give me a sample code for reference.

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: How to lock orientation in QML

    Quote Originally Posted by nobody_gao@sina.com View Post
    How to lock orientation in a QML application. Please give me a sample code for reference.
    Here are some articles that could help
    Implementing orientation change animation with QML
    http://www.developer.nokia.com/Commu...n_in_landscape

    Regards
    Gopal

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: How to lock orientation in QML

    if you want to do that in QML file, then i am not sure about that but yes you can do that from your main.cpp, your QApplicationViewer class has a function known as SetOrientation you can specify your orientation there.

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: How to lock orientation in QML

    If you are using Qt Quick Components, you can lock the orientation in the Page element
    http://www.developer.nokia.com/Commu...UI_orientation

    Hartti

Similar Threads

  1. Lock orientation in FlashLite 4
    By sangramp@cybage.com in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2011-03-28, 08:28
  2. how to lock orientation in meego with QT
    By linlin_0 in forum Nokia N9
    Replies: 3
    Last Post: 2010-11-16, 08:57
  3. Lock orientation change in N97
    By darshan.gandhi in forum Symbian User Interface
    Replies: 7
    Last Post: 2010-08-09, 04:50

Posting Permissions

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