Results 1 to 8 of 8

Thread: How to add menu item in tool bar using designer

  1. #1
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default How to add menu item in tool bar using designer

    Hi ,
    I am using QT4.4.0 under windows . Here I am using QT Designer to create the Ui . In my application in Main window I am able to add menu item and sub items(QAction) using designer, But now I want all these menu item actions to be shown in Toolbar .How can I do this using QT designer. Please help me to solve this problem.



    Regards,
    Sudheer K.

  2. #2
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: How to add menu item in tool bar using designer

    Hi,
    any one please give reply to the above thread .




    -sudheer.

  3. #3
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    63
    Thanks
    1
    Thanked 22 Times in 19 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: How to add menu item in tool bar using designer

    In Qt Designer (4.7.0 is the one I use) click "Action Editor" -tab and drag and drop the actions to menu bar.

  4. #4
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: How to add menu item in tool bar using designer

    Hi ,
    Thanks for your reply . If I do drag and drop , I can see the action only on ToolBar . Here I want to show the action both in MenuItems and ToolBar .
    So please suggest me how to show the same action both in Menubar item and in ToolBar .


    Regards,
    Sudheer.

  5. #5
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    63
    Thanks
    1
    Thanked 22 Times in 19 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: How to add menu item in tool bar using designer

    Sorry I do not understand what do you mean by MenuItems? I can drag and drop same action to menu and to toolbar without problems.

  6. #6
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: How to add menu item in tool bar using designer

    MenuItem is nothing but sub item in a menu in menubar means these are also actions. Here I am able to add action to menubar ,but if I drag this to the ToolBar it is disappwaring from menubar . Here I want to have same action in both menubar and toolbar.


    sudheer.

  7. #7
    Join Date
    Aug 2008
    Location
    Algarve, Portugal
    Posts
    288
    Thanks
    23
    Thanked 32 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: How to add menu item in tool bar using designer

    Always do the dragging from the action editor
    __________________________________________________
    My projects: calculator MathGraphica ; SuperEpicMegaHero game ; GooglePlay ; bitbucket ; github
    Like my projects ? Buy me a kofi

  8. The following user says thank you to john_god for this useful post:

    maratk1n (5th April 2018)

  9. #8
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: How to add menu item in tool bar using designer

    Hi ,
    Thanks for your help . I made it . Thanks again.


    Sudheer.

Similar Threads

  1. Menu Item has no highlight
    By blackfox in forum Qt Programming
    Replies: 6
    Last Post: 24th September 2008, 12:17
  2. how to modify menu item height
    By blackfox in forum Qt Programming
    Replies: 2
    Last Post: 9th September 2008, 10:02
  3. Menu problem using Designer
    By JimBrown in forum Qt Tools
    Replies: 1
    Last Post: 19th February 2007, 21:47
  4. How to get a position of the menu bar item?
    By Mad Max in forum Qt Programming
    Replies: 2
    Last Post: 20th November 2006, 03:20
  5. image for a custom menu Item.......
    By Naveen in forum Qt Programming
    Replies: 2
    Last Post: 23rd February 2006, 09:28

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.