<div dir="ltr">Hi<br><br>I want to putt the background image in my pyqt application . I take a widget and putt image through stylesheet but when i created button the background image use for widget comes on button too .<br>
<br>Code:<br><br>import sys,os<br>from functools import partial<br>from PyQt4 import QtGui, QtCore<br><br>app = QtGui.QApplication(sys.argv)<br>widget =QtGui.QWidget()<br>screen = QtGui.QDesktopWidget().screenGeometry()<br>
widget = QtGui.QWidget()<br>screen_width = screen.width()<br>screen_height = screen.height()<br>widget.resize(screen_width, screen_height)<br>widget.setStyleSheet("border-image:url(Window/default.jpg)")<br>button = QtGui.QPushButton(widget)<br>
button.setGeometry(200,500, 130, 130)<br>widget.show()<br>sys.exit(app.exec_())<br><br></div>