title: stretching and a transparent background image in qt
body: <p>The picture in png format with a resolution of 48x48 with white background. I need to get it stretched to the size of 16x16 and a white background was transparent. To display the image I am using the code:</p>
  
  <pre><code>QWidget* Icon;
  QPixmap ico1(":/icons/ico1.png");
  QPalette pal;
      pal.setBrush(Icon-&gt;backgroundRole(), QBrush(ico1));
      Icon-&gt;setPalette(pal);
  Icon-&gt;resize(16,16);
  </code></pre>
  
  <p>Thanks.</p>