views:

51

answers:

0

Hi!

My question is about how to lock a screen orientation on WM using Qt? I know that I can use this code for Symbian:

CAknAppUi* appUi = dynamic_cast<CAknAppUi*> (CEikonEnv::Static()->AppUi());
    TRAPD(error, 
    if (appUi) {
        // Lock application orientation into landscape
        appUi->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
    });

But what is about WM? I can't find any suggestions. Please help me.

Thanks in advance!