Disable auto rotation
-
Providing some more details would help: E.g. which OS are you using?
-
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