PDA

View Full Version : How to add menu item in tool bar using designer



sudheer168
10th November 2010, 12:23
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.

sudheer168
13th November 2010, 09:28
Hi,
any one please give reply to the above thread .




-sudheer.

tsp
13th November 2010, 10:02
In Qt Designer (4.7.0 is the one I use) click "Action Editor" -tab and drag and drop the actions to menu bar.

sudheer168
13th November 2010, 10:09
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.

tsp
13th November 2010, 10:21
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.

sudheer168
13th November 2010, 10:31
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.

john_god
13th November 2010, 11:04
Always do the dragging from the action editor

sudheer168
13th November 2010, 11:38
Hi ,
Thanks for your help . I made it . Thanks again.


Sudheer.