QPushButton design (style sheet)
-
Hello, everyone.
I want to assign the image and background color to the button at the same time.The form I want is shown below.
The red square has a background color and "Text" at the top. The white square is an image.
This was all I could do.
QPushButton *button = new QPushbutton button-> setStyleSheet ("border-image: url (test.jpg);");
I do not know how to do it.
Thank you for your advice.
-
Hello, everyone.
I want to assign the image and background color to the button at the same time.The form I want is shown below.
The red square has a background color and "Text" at the top. The white square is an image.
This was all I could do.
QPushButton *button = new QPushbutton button-> setStyleSheet ("border-image: url (test.jpg);");
I do not know how to do it.
Thank you for your advice.