Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Disable auto rotation

    Mobile and Embedded
    3
    4
    3562
    Loading More Posts
    • 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
      tristenn last edited by

      Hi,

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

      Thank you.

      1 Reply Last reply Reply Quote 0
      • T
        tobias.hunger last edited by

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

        1 Reply Last reply Reply Quote 0
        • T
          tristenn last edited by

          Qt creator. Application For symbian 3

          1 Reply Last reply Reply Quote 0
          • B
            beardog last edited by

            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 Reply Quote 0
            • First post
              Last post