How to get arrow to align within button?
-
How can one get a triangle to align within a button in the macOS style properly? While it looks correctly on Fusion:
Qt is showing me something me something different in macOS:
Something that's rather unaesthetic as well. The same issue is present when we use a down arrow:
The .ui is available in this PR.
Any help is appreciated, we've tried quite a few variations at this point. Thanks!
-
Here they are: https://imgur.com/a/cY03B
-
You don't have a text in your button therefore I would suggest using stylesheets for this.
myButton->setStyleSheet("QPushButton{border-image:url(:/images/img.png);}");
Than you only have to make sure, that your button has the correct apsect ratio, because the stylsheet will stretch it.
-
-
@J.Hilk said in How to get arrow to align within button?:
You don't have a text in your button therefore I would suggest using stylesheets for this.
myButton->setStyleSheet("QPushButton{border-image:url(:/images/img.png);}");
Than you only have to make sure, that your button has the correct apsect ratio, because the stylsheet will stretch it.
Thanks, that worked.