×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    91

    Menu Bar in Fullscreen

    Hi, when i set my mainwindow to fullscreen the menu bar doesn't appear. It's possible to set it visible or i need create buttons?

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Menu Bar in Fullscreen

    SoftkeysVisibleHint flag show menu in full screen application. Just add following line in your widget.

    setWindowFlags( windowFlags() ^ Qt::WindowSoftkeysVisibleHint );

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    91

    Re: Menu Bar in Fullscreen

    #include <QtGui/QApplication>
    #include "mainwindow.h"

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    MainWindow w;
    #if defined(Q_WS_S60)
    //w.showMaximized();
    w.showFullScreen();
    w.setWindowFlags(w.windowFlags() ^ Qt::WindowSoftkeysVisibleHint );
    #else
    w.show();
    #endif

    return a.exec();
    }
    I added like tou said but the aplication freak out.

    My aplication normal:
    My aplication with your code:

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Menu Bar in Fullscreen

    What happen if you reverse the order of function call??

    i.e from

    w.showFullScreen();
    w.setWindowFlags(w.windowFlags() ^ Qt::WindowSoftkeysVisibleHint );
    To.

    w.setWindowFlags(w.windowFlags() ^ Qt::WindowSoftkeysVisibleHint );
    w.showFullScreen();

  5. #5
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    91

    Re: Menu Bar in Fullscreen

    You're right! It's working now, Thanks

Similar Threads

  1. Replies: 5
    Last Post: 2010-01-11, 14:19
  2. Replies: 5
    Last Post: 2009-04-07, 09:53
  3. Menu bar doesn't update
    By kalastaja in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-03-04, 07:40
  4. menu bar
    By stenlik in forum Symbian
    Replies: 0
    Last Post: 2004-11-23, 09:23
  5. Menu bar
    By franalegre in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-03-12, 08:42

Posting Permissions

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