bakground color inherited from background widget PyQT5 Designer
Unsolved
Qt for Python
-
I opened a new file as QWidget in PyQT5 and put some QPushButtons in it. but by inserting the background into Widget, the same image is also inherited as the background of the button and any other element I try to insert on it. I add this on styleSheet of widget
border-image: url("myUrl");
i also tried with this styleSheet, but the result is not full screen as expected
background-image: url("VolleyBall_Pitch.png"); background-repeat: no-repeat; background-position: center;
-
You can try specify the objectName to make the style only work on that widget. Use "#". Like this
"tab" is the objectName , if I put some buttons in "tab",the button will not inherit the background style.