title: PyQT - Function to change background image of widget just blanking background, not replacing it...?
body: <p>I have this but it's not working correctly:</p>
  
  <pre><code>def changebackground(self):
   fname = QtGui.QFileDialog.getOpenFileName(self, 'Select background image', '/home/stu/Desktop/python')
   print fname
   self.results.setStyleSheet("background-image: url(fname); background-repeat: no-repeat; background-position: center;")
  </code></pre>
  
  <p>The correct fname is printed to console when the function is called via a button, but the background image of the results widget (a textedit box) just goes blank and loses the background image that I had started it with. It doesn't display the new chosen background. </p>