Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to put arrow icon next to text in QToolButton QT C++

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

enter image description here

how to do it

like image 539
Jai Avatar asked Feb 01 '26 19:02

Jai


1 Answers

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 ▼"

like image 52
Gwen Avatar answered Feb 04 '26 09:02

Gwen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!