Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add window background in pyqt5

stylesheet = """
    MainWindow {
        background-image: url("D:/_Qt/img/cat.jpg"); 
        background-repeat: no-repeat; 
        background-position: center;
    }
"""
 
PREVIOUS NEXT
Tagged: #add #window #background
ADD COMMENT
Topic
Name
8+1 =