So fügen Sie Fensterhintergrund in PYQT5 hinzu

stylesheet = """
    MainWindow {
        background-image: url("D:/_Qt/img/cat.jpg"); 
        background-repeat: no-repeat; 
        background-position: center;
    }
"""
Bright Bee