Hi

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  .

Code:

import sys,os
from functools import partial
from PyQt4 import QtGui, QtCore

app = QtGui.QApplication(sys.argv)
widget =QtGui.QWidget()
screen = QtGui.QDesktopWidget().screenGeometry()
widget = QtGui.QWidget()
screen_width = screen.width()
screen_height = screen.height()
widget.resize(screen_width, screen_height)
widget.setStyleSheet("border-image:url(Window/default.jpg)")
button = QtGui.QPushButton(widget)
button.setGeometry(200,500, 130, 130)
widget.show()
sys.exit(app.exec_())
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to