×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    31

    Lock the Screen Not Working

    Hello,

    I am trying to lock the screen,searched the web and added this to my project:

    Symbian: {LIBS += -lcone -leikcore -lavkon} in my .pro file

    this in my main:

    #ifdef Q_OS_SYMBIAN
    #include <eikenv.h>
    #include <eikappui.h>
    #include <aknenv.h>
    #include <aknappui.h>
    #endif



    and this in my main.cpp before showing the window:

    #ifdef Q_OS_SYMBIAN

    CAknAppUi* appUi = dynamic_cast<CAknAppUi*>( CEikonEnv::Static()->AppUi() );

    if(appUi)
    {
    TRAP_IGNORE( appUi->SetOrientationL( CAknAppUi::EAppUiOrientationPortrait ) );
    }

    #endif //

    And its not working,the screen is not locked,i am using QT also installed nokia qt sdk,i have the Simulator QT for MinGW4.4,i which i tested it.

    If anyone can offer any hint as to what am i doing wrong i'll greatly appreciate it.

    Thanks,
    ZeroSum

  2. #2
    Super Contributor
    Join Date
    Jan 2008
    Location
    Bangalore, India
    Posts
    777

    Re: Lock the Screen Not Working

    have you looked on that,
    http://wiki.forum.nokia.com/index.ph...Qt_for_Symbian

    its working fine for me.
    Regards
    $-Nitesh-$

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    31

    Re: Lock the Screen Not Working

    Hey thanks for the reply,yes i have but still not working,didn't test it on a device,just the MinGW4.4 simulator maybe that's the problem.

  4. #4
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Lock the Screen Not Working

    You see those "#ifdef Q_OS_SYMBIAN" statements? Those mean that the enclosed code is only compiled for a Symbian target.

Similar Threads

  1. Lock Screen..
    By nital_shah in forum Symbian
    Replies: 1
    Last Post: 2008-11-14, 14:44
  2. DRM forward Lock Not working in Nokia 5300
    By kamalp.sharma@gmail.com in forum OMA DM/DS/CP
    Replies: 1
    Last Post: 2008-05-09, 16:08
  3. DRM Forward Lock Not Working for OTA
    By nishant009 in forum Digital Rights Management & Content Downloading
    Replies: 0
    Last Post: 2008-05-07, 10:24
  4. Nokia Screen lock-up
    By sgreid101 in forum Mobile Java General
    Replies: 2
    Last Post: 2006-11-22, 15:00
  5. N90 cover key lock not working
    By aymannadi in forum General Development Questions
    Replies: 1
    Last Post: 2006-10-05, 06:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×