aj2903
14th February 2009, 11:23
I have declared new button and assgin stylesheet to it.
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"
);
my the problem is: how to apply the below code
QPushButton:Pressed {
padding-left: 5px;
padding-top: 5px;
}
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"
);
my the problem is: how to apply the below code
QPushButton:Pressed {
padding-left: 5px;
padding-top: 5px;
}