×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    10

    Question How to remove status bar and menu bar ?

    Hi,

    I would remove the status bar and the menu bar in a a Qt application.
    how can I achieve it?

    Note I donnot want to a full screen applicaion but a small rectangle on device.
    thanks.

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How to remove status bar and menu bar ?

    I would recommend you to refer this document : http://doc.trolltech.com/4.5/qstatusbar.html

    For full screen try any one from this two function, one will work for you.
    showFullScreen();
    showMaximized();
    Best regards,

  3. #3
    Nokia Developer Expert
    Join Date
    Feb 2008
    Posts
    183

    Re: How to remove status bar and menu bar ?

    Quote Originally Posted by Carol.chen View Post
    Hi,

    I would remove the status bar and the menu bar in a a Qt application.
    how can I achieve it?

    Note I donnot want to a full screen applicaion but a small rectangle on device.
    thanks.
    Somewhat hackish solution would be to call showFullScreen() for a dialog that has been defined as fixed size.

    I.e.
    myDialog.showFullscreen();
    myDialog.setFixedSize(QSize(100,100));

    Note that this causes flickering and dialog position is probably not what you wanted.

  4. #4
    Registered User
    Join Date
    Jun 2010
    Posts
    10

    Cool Re: How to remove status bar and menu bar ?

    Quote Originally Posted by Carol.chen View Post
    Hi,

    I would remove the status bar and the menu bar in a a Qt application.
    how can I achieve it?

    Note I donnot want to a full screen applicaion but a small rectangle on device.
    thanks.
    Hi, Now I get it solved. thank you all

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);


    MainWindow mw;
    mw.showFullScreen();

    return app.exec();
    }

    MainWindow::MainWindow()
    {

    Qt::WindowFlags flags = windowFlags();

    flags |= Qt::WindowSoftkeysVisibleHint;
    flags |= Qt::WindowSoftkeysRespondHint;
    setWindowFlags(flags);
    showFullScreen();


    }

Similar Threads

  1. How to remove menu bar on s60 5th editon ?
    By henrykim in forum Symbian
    Replies: 3
    Last Post: 2010-10-04, 11:31
  2. status bar
    By m_brahmin58 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2008-03-28, 09:41
  3. Title Bar and Softkey Bar disply incorrectly
    By michaelren in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-01-25, 07:50
  4. Replies: 2
    Last Post: 2007-08-15, 10: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
  •