×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    44

    Question How to change right-key menu from "Exit" to "Hide"?

    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
    Join Date
    Oct 2010
    Posts
    12

    Re: How to change right-key menu from "Exit" to "Hide"?

    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
    Join Date
    Nov 2008
    Posts
    44

    Re: How to change right-key menu from "Exit" to "Hide"?

    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
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How to change right-key menu from "Exit" to "Hide"?

    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
  •