1 Attachment(s)
How could I create an action like the image shown by QtDesigner?
As the graph show(surrounded by a red circle), I want to nested some actions into the icons and tell
the users this message by an arrow(how should I call this kind of UI?).
http://farm3.staticflickr.com/2865/1...46d9f7d396.jpg
Re: How could I create an action like the image shown by QtDesigner?
QToolButton and call QToolButton::addAction() multiple times (or addActions()) with the popup menu actions. Call setDefaultAction() if you want a single click to do something. Also look at the popupMode().
Re: How could I create an action like the image shown by QtDesigner?
Sorry, my title did not express my intention correctly.
What I want to ask is, how could I design this kind of UI by QtDesigner(without hand coding)?
ps : I know how to do it by codes
Re: How could I create an action like the image shown by QtDesigner?
You cannot AFAICT. You can place the default action (QToolButton) on the tool bar, set its properties, and create the other actions in Designer. Adding the other actions to the tool button needs to be done in code.