How to make a McIntosh style (Candy Style) QPushButton for Windows application using stylesheets ?
Unsolved
General and Desktop
-
I want to make that kind of button but i dont know how to do it
-
@Eduardo12l
can you link to an example image/screenshot? -
( http://doc.qt.io/qt-4.8/gallery-macintosh.html ) There is a QPushbutton ("Cancel") that is blue and transparent
-
I've just found how to make a Candy Button but its not what i want, anyway i post it:
You can write it at StylesheetQPushButton { color: white; background-color: QLinearGradient(spread:pad x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 rgba(156,152,215,200), stop: 0.4 rgba(58,52,151,200), stop: 1.0 rgba(78,70,190,200)); border-width: 1px; border-color: #339; border-style: solid; border-radius: 7; padding: 3px; padding-left: 5px; padding-right: 5px; }
Its a candy button purple
-
@Eduardo12l
probably the most easiest way would be to use a border-image, like this one for example. See the related docs.Alternatively you can go the stylesheet-only way, which might not fully result in what you want though.