Results 1 to 2 of 2

Thread: how to add QMenu or QAction inside QDesigner

  1. #1
    Join Date
    Aug 2009
    Posts
    81
    Platforms
    MacOS X Windows

    Default how to add QMenu or QAction inside QDesigner

    How do you add a QMenu to a QMenuBar within QTDesigner, Same Question for adding a QAction to a QToolBar within QTDesigner

    i do not see any option for that

    Thanks

  2. #2
    Join Date
    Nov 2008
    Posts
    142
    Thanks
    3
    Thanked 20 Times in 20 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to add QMenu or QAction inside QDesigner

    In your form, do you see "Type Here" at the top of it? Just double click on it and enter the name you want your menu to have. That way you create a new menu. To add menu items click on the menu, then again on "Type Here" and enter a name for the new item.

    To add actions to the toolbar, simply create a new action in the Action Editor (check Designer's "View" menu if you don't see that window). Then you can drag that action to the form's toolbar. You can also drag actions to the menu to add menu items instead of using the method mentioned above.

    Have a look at the Designer documentation for more details.

Similar Threads

  1. no compile error, but error on run with QMenu QAction
    By sincnarf in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2011, 11:05
  2. QAction text color (QMenu)
    By StefanK in forum Qt Programming
    Replies: 1
    Last Post: 20th March 2009, 15:14
  3. Having some QObject problems
    By Barvik in forum Qt Programming
    Replies: 7
    Last Post: 13th November 2008, 04:29
  4. QPushButton QMenu QAction
    By hgedek in forum Newbie
    Replies: 2
    Last Post: 1st November 2007, 12:29
  5. Replies: 2
    Last Post: 23rd February 2006, 16:38

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.