Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User hutigers's Avatar
    Join Date
    Nov 2008
    Posts
    44
    Hello. I am programming an alarm clock app.
    Up to my limited knowledge, what I know is adding Actions to menuBar(), which is only affect the left-key menu. The right-key menu is always "Exit".
    What can I do to change the "Exit" to "Hide"? Is there a method it Qt to do this?

  2. #2
    Registered User arttu76's Avatar
    Join Date
    Oct 2010
    Posts
    12
    If the action you wish to attach as the Exit (=the button on the right, at least on N8) is called yourAction, then:
    Code:
    yourAction->setSoftKeyRole(QAction::NegativeSoftKey);
    QAction::PositiveSoftKey replaces the other one.

    For more info, see http://doc.trolltech.com/4.7/qaction...ftKeyRole-enum

  3. #3
    Registered User hutigers's Avatar
    Join Date
    Nov 2008
    Posts
    44
    I am sorry if I mislead you. What I want is not to change the sofkkey. What I want to is to change "Exit" to "Hide". Like the picture below.

  4. #4
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,293
    Hi, This topic has been discussed so many times,,,That how can we change the role of soft key.......

    See this article : http://wiki.forum.nokia.com/index.ph...Qt_for_Symbian
    http://library.forum.nokia.com/index...25C016266.html

    Best regards,

Similar Threads

  1. Replies: 3
    Last Post: 2009-06-18, 21:42
  2. Replies: 3
    Last Post: 2006-11-30, 14:30
  3. Replies: 21
    Last Post: 2006-10-11, 09:17
  4. how to change text of "select" and "cancel" button of menu system
    By bigboy0918 in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-11-21, 06:44
  5. Replies: 0
    Last Post: 2004-04-02, 03:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved