title: The icon of QPushButton is blurry when DPI scaling is enabled
body: <p>I found the icon of QPushButon is blurry when DPI scaling is enabled. Even if replaced by SVG, the icon is still blurred. Is there any way to make the icon clearer?</p>
  <p>Here is the code:</p>
  <pre class="lang-py prettyprint-override"><code># coding:utf-8
  import os
  import sys
  
  from PyQt5.QtGui import QIcon
  from PyQt5.QtWidgets import QApplication, QPushButton, QWidget
  
  
  class Demo(QWidget):
  
      def __init__(self):
          super().__init__(parent=None)
          self.button = QPushButton(' Shuffle all', self)
          imagePath = &quot;app/resource/images/random_play_all/Shuffle_normal.png&quot;
          self.button.setIcon(QIcon(imagePath))
          self.button.move(self.width()//2-self.button.width() //
                           2, self.height()//2-self.button.height()//2)
  
  
  if __name__ == '__main__':
      os.environ[&quot;QT_ENABLE_HIGHDPI_SCALING&quot;] = &quot;0&quot;
      os.environ[&quot;QT_SCALE_FACTOR&quot;] = '1.25'
      app = QApplication(sys.argv)
      demo = Demo()
      demo.show()
      app.exec_()
  
  </code></pre>
  <p>The running result is shown in the figure below</p>
  <p><a href="https://i.stack.imgur.com/VLqvX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VLqvX.png" alt="running result" /></a></p>