Results 1 to 4 of 4

Thread: [Symbian] show device's menu within a fullscreen application

  1. #1
    Join Date
    Jul 2010
    Posts
    16
    Qt products
    Qt Jambi
    Platforms
    Unix/X11 Symbian S60 Maemo/MeeGo

    Question [Symbian] show device's menu within a fullscreen application

    Hello,

    I found no information about this in the documentation.

    My question is: is it possible to display the phone's menu bar on a full screen QMainWindow?

    In other words, is there a way to mimic the action of the "Options" nokia button.

    Thanks!

  2. #2
    Join Date
    Sep 2010
    Posts
    11
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: [Symbian] show device's menu within a fullscreen application

    Check out the softkeys example in \NokiaQtSDK\Examples\4.6\widgets\softkeys. It has exactly what you're looking for in this code:

    Qt Code:
    1. flags |= Qt::WindowSoftkeysVisibleHint;
    2. flags &= ~Qt::WindowSoftkeysRespondHint;
    3. setWindowFlags(flags); // Hides visible window
    4. showFullScreen();
    5. modeLabel->setText(tr("Fullscreen with softkeys"));
    To copy to clipboard, switch view to plain text mode 

  3. The following user says thank you to skeletor for this useful post:

    lincolnlau (12th September 2010)

  4. #3
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4

    Default Re: [Symbian] show device's menu within a fullscreen application

    when i run the example, i got some errors ? my qt version is 4.6.2

    /Qt/qtcreator-2.0.1/softkey/mainwindow.cpp:124: error: `WindowSoftkeysVisibleHint' is not a member of `Qt'

    /Qt/qtcreator-2.0.1/softkey/mainwindow.cpp:125: error: `WindowSoftkeysRespondHint' is not a member of `Qt'

  5. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: [Symbian] show device's menu within a fullscreen application

    Did you include the right header file?
    Qt Code:
    1. #include <Qt>
    To copy to clipboard, switch view to plain text mode 
    And are you linking against the Qt version for Symbian?

Similar Threads

  1. Hiding mac system menu in fullscreen mode
    By jupi32000 in forum Qt Programming
    Replies: 0
    Last Post: 18th November 2009, 19:32
  2. Intercept fullscreen state on other application
    By hades76 in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2008, 09:13
  3. Fullscreen application under Gnome
    By cionci in forum Qt Programming
    Replies: 14
    Last Post: 8th March 2008, 21:36
  4. PopUp a Menu when showing FullScreen
    By Lele in forum Qt Programming
    Replies: 2
    Last Post: 29th May 2007, 10:04
  5. Toolbar show menu
    By Michiel in forum Qt Programming
    Replies: 5
    Last Post: 26th May 2007, 15:22

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.