What is the best way to render capsule-style toolbar elements (including label text under buttons) in a Qt application?
Regarding the display of buttons, I want to make the most of what is provided by Mac OS. (I'm not a Mac developer, so I donโt know if he has an API for this.) That is, I know that I can draw them myself, use stylesheets for the border image, guess the font and set it all in the layout, but is there a better one A way to ensure consistent presentation when a Mac updates its โlookโ? I am using C ++ in Qt.
I do not hate the idea of โโusing Q_WS_MAC to get rendering for the platform, but does Qt already have something for this? Do you know the setCapsuleStyle(true) method somewhere? :)
Thanks for any suggestions.
source share