Reputation: 1332
I am using QToolButton as dropdown button (but not setting QMenu to QToolButton). On click of button, I am showing my customize menu which is not QMenu based class. I want to put a down arrow on button.
I tried stylesheet and other thing but icon showing before text. I want down arrow after text.
like
how to do it
Upvotes: 3
Views: 4070
Reputation: 1452
Put the arrow as a Unicode caracter, for example 'BLACK DOWN-POINTING TRIANGLE' or 'BLACK DOWN-POINTING SMALL TRIANGLE'.
That would give you something like "Modify ▼"
Upvotes: 3
Reputation: 34568
Try to set toolButtonStyle
property to ToolButtonTextUnderIcon
in QToolButton
.
Upvotes: 1