What is the best way to render capsule-style toolbar controls (including the label text below the buttons) in a Qt application?
As far as rendering the buttons, I want to tap into what is provided by Mac OS as much as possible. (I'm not a Mac developer, so do not know if it has an API for this.) That is, I know I can draw them myself, use style sheets for border-image, guess on the font, and set it all up in a layout, but is there a better way that ensures consistent presentation when Mac updates her "look and feel?" I am using C++ in Qt.
I don't hate the idea of using Q_WS_MAC to get the platform-specific rendering, but does Qt already have anything for this? You know, a setCapsuleStyle(true)
method somewhere? :)
Thanks for any suggestions.