×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    23

    creating menu bar

    i want to display menu bar when I touch on the screen. is there any code sample for that

  2. #2

  3. #3
    Registered User
    Join Date
    Apr 2011
    Posts
    23

    Re: creating menu bar

    thank you its working but I am not understanding how its working, which is the function is calling

  4. #4
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: creating menu bar

    Quote Originally Posted by puploo View Post
    i want to display menu bar when I touch on the screen. is there any code sample for that
    Are you referring to the CBA buttons or is it pop up menus you are looking for.

  5. #5
    Registered User
    Join Date
    Apr 2011
    Posts
    23

    Re: creating menu bar

    pop up menu, i can display the popup menu, now how can I display a message when i press the button

  6. #6
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,356

    Re: creating menu bar

    check the articles
    there is something called SIGNAL and SLOT
    Code:
    //add action for help menu.
    	menu_helpAction = new QAction(tr("Help"), this);
    	menuBar()->addAction(menu_helpAction);
    	connect(menu_helpAction, SIGNAL(triggered()), this, SLOT(help()));
    Signal is something like action performed and Slot is result.
    go through this http://doc.qt.nokia.com/4.7/signalsandslots.html

  7. #7
    Registered User
    Join Date
    Apr 2011
    Posts
    23

    Re: creating menu bar

    Quote Originally Posted by somnathbanik View Post
    check the articles
    there is something called SIGNAL and SLOT
    Code:
    //add action for help menu.
    	menu_helpAction = new QAction(tr("Help"), this);
    	menuBar()->addAction(menu_helpAction);
    	connect(menu_helpAction, SIGNAL(triggered()), this, SLOT(help()));
    Signal is something like action performed and Slot is result.
    go through this http://doc.qt.nokia.com/4.7/signalsandslots.html
    thank you it worked, i am stupid, its so simple

Similar Threads

  1. creating menu and sub menu
    By hasiamar in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-10-23, 16:21
  2. Creating a Vertical Scroll Bar ?
    By ManoDasa in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-04-27, 14:01
  3. menu bar
    By stenlik in forum Symbian
    Replies: 0
    Last Post: 2004-11-23, 09:23
  4. 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
  •  
×