#include <QApplication>
#include <QtGui>
int main(int argc, char* argv[])
{
btn->setStyleSheet(
"background:qlineargradient(x1:0, y1:0, x2:0, y2:1,"
"stop: 0 black, stop: 0.4 gray, stop: 0.5 darkgray, stop: 1.0 black);"
"color:yellow; font-size:24px;"
"font-weight:bold; border-radius:10%;"
"margin:10px; border:3px dashed green;"
);
btn->show();
btn->resize(200,80);
return app.exec();
}
#include <QApplication>
#include <QtGui>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QPushButton* btn = new QPushButton("Press me");
btn->setStyleSheet(
"background:qlineargradient(x1:0, y1:0, x2:0, y2:1,"
"stop: 0 black, stop: 0.4 gray, stop: 0.5 darkgray, stop: 1.0 black);"
"color:yellow; font-size:24px;"
"font-weight:bold; border-radius:10%;"
"margin:10px; border:3px dashed green;"
);
btn->show();
btn->resize(200,80);
return app.exec();
}
To copy to clipboard, switch view to plain text mode
This should yield a result like this:
Bookmarks