[Qt-interest] using designer to add menu to toolbar

donglongchao donglongchao at 163.com
Mon Nov 23 16:27:12 CET 2009






在2009-11-23,"Duane Hebert" spoo at flarn.com> 写道:
>>Just try it.I think what I said and what you need are exactly the same one.Actualy I do not think we can add a QMenu to 
>> >toolbar,but only menuAction.Of course we can not see them until run-time because you create them when the app runs ,not >when you 
>>design them.
>
>Try what?  I must be missing something here.  In order to add an action the way that you say, I must create an action in designer 
>and then I can drag it to the toolbar.  I know that.  But my question was how to add a Qmenu to the toolbar in the same way.  I 
>don't see how to do that. 

So why do you want to add a QMenu on toolbar?Since it is only a container(maybe...),it make no sense to add it on a toolbar.Did you see any software have a toolbar with a menu inside?That looks not very beautiful.:-)
Longchao
>_______________________________________________
>Qt-interest mailing list
>Qt-interest at trolltech.com
>http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091123/e565e91b/attachment.html 


More information about the Qt-interest-old mailing list