×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Exclamation disabling softkeys

    Hi..
    I have a requirement. .. when ever i calling my widget...screen i need to disable the softkeys(left, right) so that no body can access them... could any body help me
    Thanks & Best Regards
    Srinivas

  2. #2
    Regular Contributor
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277

    Re: disabling softkeys

    Quote Originally Posted by srinivas.symbian View Post
    Hi..
    I have a requirement. .. when ever i calling my widget...screen i need to disable the softkeys(left, right) so that no body can access them... could any body help me
    try this
    Code:
        QAction menuRight_empty = new QAction(tr(""), this);
        menuRight_empty->setSoftKeyRole(QAction::NegativeSoftKey);
        addAction(menuRight_empty);
    
       QAction menuLeft_empty = new QAction(tr(""), this);
        menuLeft_empty->setSoftKeyRole(QAction::PositiveSoftKey);
        addAction(menuLeft_empty);
    Thanks,
    Rahul Kulshreshtha
    Please choose Notification type as "Instant Email Notification". It must be default.

  3. #3
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Re: disabling softkeys

    thanks for reply.. but exit key is not disabling.. i need to disable exit key also .. so that.. no key press event can takeplace..i need urgently..help me.. thanks..
    Thanks & Best Regards
    Srinivas

  4. #4
    Regular Contributor
    Join Date
    Apr 2010
    Location
    Surat, India
    Posts
    277

    Re: disabling softkeys

    Quote Originally Posted by srinivas.symbian View Post
    thanks for reply.. but exit key is not disabling.. i need to disable exit key also .. so that.. no key press event can takeplace..i need urgently..help me.. thanks..
    I guess you are asking for the red button. I have not tried that. But this may work.

    1. Declare protected member like below inside MainWindow
    Code:
    protected:
         void closeEvent(QCloseEvent *event);
    2. Inside it's implementation you can ignore the event that should prevent exiting application (never tried)
    Code:
    void MainWindow::closeEvent(QCloseEvent *event)
     {
          event->ignore();   // event->accept() works just opposite
     }
    Thanks,
    Rahul Kulshreshtha
    Please choose Notification type as "Instant Email Notification". It must be default.

  5. #5
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Re: disabling softkeys

    wait.. I will tell u my requirement..In my application i have to show some busy.gif animation when ever file opening.. im doing that.. and at the same time..the screen should be transparent and while busy.gif is running no key_strokes should be allowed.. im doing this.. by..calling this->setfocusreason(Qt::Nofocus);.. all is working well but the problem is.. the left and right soft keys still working while process the busy.gif.. so i need to remove/disable both soft keys.. thank u for ur reply..
    Thanks & Best Regards
    Srinivas

  6. #6
    Regular Contributor
    Join Date
    Oct 2010
    Location
    chennai
    Posts
    97

    Re: disabling softkeys

    Thank u boss. . this is worked..

    if u don't mind.. i have to customize qcalendarwidget.. so that i can add some scheduling bars in each dates.. showing timings of scheduling events.. im doing this through delegate paint method.. but problem is the background color of current date and the selected (focused date) ... the background color is over riding the scheduling bars .. the bars are not appearing at all.. but at the same time the dates are appearing as usual.. help..me.. yaar
    Thanks & Best Regards
    Srinivas

Similar Threads

  1. KeyTone Disabling
    By mallikachand in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-04-15, 14:39
  2. New method for disabling standard softkeys
    By psdeepti in forum Symbian
    Replies: 2
    Last Post: 2008-07-30, 10:50
  3. Disabling Alerts.
    By qatanah in forum Mobile Java General
    Replies: 3
    Last Post: 2007-01-14, 00:08
  4. Disabling screensaver
    By Larry101 in forum Symbian
    Replies: 2
    Last Post: 2006-11-22, 08:55
  5. Disabling screensaver
    By ash_bhatia in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-04-24, 05:32

Posting Permissions

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