Specify the class or object name the the style is to apply to, something like one of these:
setStyleSheet("QMainWindow { background-image: url(C:/Users/David/desktop/bg.png); } "
setStyleSheet("QMainWindow#objectname { background-image: url(C:/Users/David/desktop/bg.png); } "
setStyleSheet("QMainWindow { background-image: url(C:/Users/David/desktop/bg.png); } "
setStyleSheet("QMainWindow#objectname { background-image: url(C:/Users/David/desktop/bg.png); } "
To copy to clipboard, switch view to plain text mode
Bookmarks