QPushButton icon aligned left with text centered

Viewed 21894

In my Qt 5.7.1 application I've some buttons, I want to align button's icons to left and centre text, but there is no option in designer to do this.

Standard algin

I can align icon and text left by adding to button stylesheet this code:

text-align:left;

Align left

But it's not what I want to achieve. So, could you please tell me, If there is any option to align icon to left, and keep text aligned center? Thank you for help.

3 Answers
Related