×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    2

    How to remove the default "Exit" Button in the mainwindow form?

    When I use the QT mainWindow, it generates automatically the "Exit" Button. I used addAction, which includes both negtive soft key and positive soft key, intending to overload it, but failed. How am I supposed to do that?

  2. #2
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    142

    Re: How to remove the default "Exit" Button in the mainwindow form?

    For your reference, Here is a working code snippt from main window class for adding back softkey.

    Code:
     mBackAction = new QAction( tr( "Back" ), this );
        mBackAction->setSoftKeyRole( QAction::NegativeSoftKey );
    
        addAction( mBackAction );

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

    Re: How to remove the default "Exit" Button in the mainwindow form?

    Quote Originally Posted by dahiya.vinod View Post
    For your reference, Here is a working code snippt from main window class for adding back softkey.

    Code:
     mBackAction = new QAction( tr( "Back" ), this );
        mBackAction->setSoftKeyRole( QAction::NegativeSoftKey );
    
        addAction( mBackAction );
    Hi
    Thanks for the suggestion. Actually i dont want to put a back softkey over there. I just need to hide the "Exit".
    I dont want any options on the right hand softkey panel.
    I think my problem is more clear now.

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    52

    Re: How to remove the default "Exit" Button in the mainwindow form?

    from main use w.showFullScreen();

  5. #5
    Registered User
    Join Date
    Dec 2010
    Posts
    50

    Re: How to remove the default "Exit" Button in the mainwindow form?

    then no softkeys would be displayed

  6. #6
    Registered User
    Join Date
    Oct 2010
    Posts
    38

    Re: How to remove the default "Exit" Button in the mainwindow form?

    Quote Originally Posted by vsh.rules View Post
    Hi
    Thanks for the suggestion. Actually i dont want to put a back softkey over there. I just need to hide the "Exit".
    I dont want any options on the right hand softkey panel.
    I think my problem is more clear now.
    Change the text 'Back' to '', would that work?

Similar Threads

  1. Replies: 3
    Last Post: 2009-06-18, 21:42
  2. how to remove Default exit button in nokia phones??
    By snehalpatil in forum Mobile Java General
    Replies: 3
    Last Post: 2008-02-21, 12:36
  3. remove "Exit" Command?
    By toddhodes in forum Mobile Java General
    Replies: 0
    Last Post: 2003-04-17, 02:27

Posting Permissions

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