hello
I want portrait orientation on clicking rotate button in QT SDK emulator
Thanks
Printable View
hello
I want portrait orientation on clicking rotate button in QT SDK emulator
Thanks
You need to use Symbian C++ code.
Code:
#if defined(Q_WS_S60) { // For locking rotation in Symbian CAknAppUi* appUi = dynamic_cast<CAknAppUi*>(CEikonEnv::Static()->AppUi()); if(appUi) { QT_TRAP_THROWING(appUi->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape)) } w.showMaximized(); }
Don't forget to add the libs in the pro file
Code:
symbian { LIBS += -lavkon -lcone -lcntmodel -leiksrv