Results 1 to 3 of 3

Thread: [QT] MenuBar

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Cool [QT] MenuBar

    [Qt] MenuBar

    Hey guys! I coded in Qt now a pretty long time.. But i never learned how the menu bar works.. i searched on google but didn't understand that much..

    How can i make so "When the user presses on the menu and choose for example "New file" and it will send signal(slot) to a function.. I tryed with signal editor but i cant get it working =/




    Can anyone help me get this working? Thanks :blackhat:

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: [QT] MenuBar

    Qt simplifies the programming of menus and toolbars through its action concept. An action is an item that can be added to any number of menus and toolbars.
    Creating menus and toolbars in Qt involves these steps:
    1) Create and set up the actions. (you connect the action triggered() signal with the slot that you want to run)
    2) Create menus and populate them with the actions.

    Documentation

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

    zoz (17th September 2010)

  4. #3
    Join Date
    Aug 2010
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: [QT] MenuBar

    Thanks i got it working now!

Similar Threads

  1. Dialogs and MenuBar
    By vieraci in forum Qt Programming
    Replies: 5
    Last Post: 30th April 2009, 08:30
  2. Erase menubar
    By lixo1 in forum Qt Programming
    Replies: 2
    Last Post: 29th January 2009, 16:04
  3. Bar on menubar?
    By zgulser in forum Qt Tools
    Replies: 6
    Last Post: 14th January 2009, 08:07
  4. Menubar Merging
    By elcuco in forum Qt Programming
    Replies: 3
    Last Post: 7th April 2007, 15:54
  5. Using the menubar
    By Steve in forum Newbie
    Replies: 10
    Last Post: 27th February 2006, 15:59

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.