I have declared new button and assgin stylesheet to it.
button->setText("TEST");
button->setGeometry(400,50,70,40);
button->setStyleSheet(
"color:white;\n"
"background:rgb(255,255,0);"
"border-radius:10px;\n"
"font:bold 16px;\n"
"font-family:\"Arial\";\n"
);
button = new QPushButton(this);
button->setText("TEST");
button->setGeometry(400,50,70,40);
button->setStyleSheet(
"color:white;\n"
"background:rgb(255,255,0);"
"border-radius:10px;\n"
"font:bold 16px;\n"
"font-family:\"Arial\";\n"
);
To copy to clipboard, switch view to plain text mode
my the problem is: how to apply the below code
QPushButton:Pressed {
padding-left: 5px;
padding-top: 5px;
}
Bookmarks