Is it possible to make the frame of a push button "sunken" (inset in stylesheet)?
I tried around with setting stylesheet but without any success.
If there is no solution I have to take a lable which I event filter but I don't like this.
Nippler
Is it possible to make the frame of a push button "sunken" (inset in stylesheet)?
I tried around with setting stylesheet but without any success.
If there is no solution I have to take a lable which I event filter but I don't like this.
Nippler
Yes thers a way,,,,
QPushButton
{
border-style: inset;
}
but for this to work, u need to set the following code -
myButton->setFrameStyle(Qt::StyledPanel);
hope this helps
Thanks for the answer but I can't find a methode "setFrameStyle" from QPushButton?!
sorry, framestyle is used with QLabel
just try using border-style: inset;
in the stylesheet
ui->male_button->setFlat(TRUE);
ui->male_button->setStyleSheet("* { background-color: rgba(0,125,0,0) }");
Bookmarks