×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    22

    screen auto rotation

    Which API should I use if I want to make the screen auto rotation?
    大家好。。

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: screen auto rotation

    In order to make the application auto-rotate depending on the current device orientation, Qt::WA_Maemo5AutoOrientation must be set on a top-level widget.

  3. #3
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: screen auto rotation


  4. #4
    Registered User
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    22

    Re: screen auto rotation

    Thanks for your info~ Now I am using Qt Creator 1.3.83, based on Qt 4.7.0, but every time I do a #include <QMaemo5Style> it says no such file or directory.
    大家好。。

  5. #5
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: screen auto rotation

    Qt Creator is only IDE, it cannot be based on Qt 4.7.0. What is your platform, which SDK do you use?
    Do you have
    Code:
    QT += maemo5
    in the project file?

Similar Threads

  1. Replies: 4
    Last Post: 2010-05-07, 11:14
  2. how to disable auto-rotation in 5800
    By tom161566038 in forum Mobile Java General
    Replies: 3
    Last Post: 2010-03-01, 02:55
  3. disable auto-rotation of display
    By wildabeast in forum Symbian
    Replies: 2
    Last Post: 2009-09-29, 22:53
  4. Auto screen rotation of N82
    By hangyc in forum Mobile Java General
    Replies: 3
    Last Post: 2009-04-07, 09:21
  5. How to disable auto screen rotation?
    By olliwang in forum Symbian
    Replies: 1
    Last Post: 2008-11-08, 13:47

Posting Permissions

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