Design with QSS Qlabel is rounded corners, but when to display images in pictures or how to solve rectangular
QSS code
QLabel {
Border - width: 5 px 5 px 5 px 5 px;
Border - style: solid;
Border - color: RGB (76,76,76);
Border - the radius: 15 px;
}
Code v
UI. Label_3 - & gt; SetScaledContents (true);
UI. Label_3 - & gt; SetPixmap (QPixmap (" D: \ \ resource \ \ test4 PNG "));
Show pictures or right-angle great god how the solution
CodePudding user response:
Use PS pictures instead of rounded corners,
CodePudding user response:
May be your picture name what part of not good, can give the picture to add a class or id to add style
CodePudding user response: