Code:
#include <QtGui>
int main(int argc, char** argv)
{
QApplication app(argc, argv);
app.setStyleSheet("QPushButton{background-color: rgb(0, 86, 118);"
"border-style: solid;"
"border-width: 20px;"
"border-radius: 0px;"
"border-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #00aaf2, stop: 1 #005676)"
"qlineargradient(x1: 1, y1: 0, x2: 0, y2: 0, stop: 0 #00aaf2, stop: 1 #005676)"
"qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #005676, stop: 1 #00aaf2)"
"qlineargradient(x1: 1, y1: 0, x2: 0, y2: 0, stop: 0 #005676, stop: 1 #00aaf2);}");
QPushButton button("Test button");
button.show();
return app.exec();
}
It's probably easier to use a graphical texture:
http://doc.trolltech.com/4.6/stylesh...ton-and-images