enter image description here I created a class inheriting from QWidget. I wanted to add a background to it using StyleSheet, but for some reason buttons and Label that are on this QWidget are colored into this background. Can you explain why and / or say what needs to be done to properly set the background?

    1 answer 1

    All right, because objects are in a QWidget then they take it to StyleSheet. Solution: Just specify the StyleSheet for the buttons and label. I usually do border: none;