Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Disable auto rotation

Disable auto rotation

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 3.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tristenn
    wrote on last edited by
    #1

    Hi,

    pls help mi with this. I looking for all over the web, but I cant find solution.

    Thank you.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Providing some more details would help: E.g. which OS are you using?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tristenn
        wrote on last edited by
        #3

        Qt creator. Application For symbian 3

        1 Reply Last reply
        0
        • B Offline
          B Offline
          beardog
          wrote on last edited by
          #4

          in "MobilePaint":http://www.forum.nokia.com/info/sw.nokia.com/id/25765c1e-a7e8-4ad4-9066-c7cf453b4ec1/Qt_QMobilePaint_Example_v1_2_en.zip.html example they use native symbian functions. Here is a part of main.cpp:

          @
          // Lock S60 orientation
          #ifdef Q_OS_SYMBIAN
          #include <eikenv.h>
          #include <eikappui.h>
          #include <aknenv.h>
          #include <aknappui.h>
          #endif

          ...

          // Lock S60 orientation
          

          #ifdef Q_OS_SYMBIAN
          CAknAppUi* appUi = dynamic_cast<CAknAppUi*> (CEikonEnv::Static()->AppUi());
          TRAPD(error,
          if (appUi) {
          appUi->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape);
          }
          );
          #endif@

          this libraries also must be mentioned in pro file

          @ LIBS += -lcone -leikcore -lavkon@

          P.S. ok, it's late answer, but maybe someone else will find this thread. Really, I don't know why nokia guys haven't created any tutorial for such things

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved