title: How to make a resizable QLabel which can be auto-resize by the user
body: <p>I have a one <code>QLabel</code> which contain one <code>QPixmap</code> image, I want to make this label resizable so that the user can resized it.
  I know to accomplish this I need to create my own label inheriting from <code>QLabel</code>, I have done that but don't know what to do now, Please help me, It's important. </p>
  
  <p>My code:</p>
  
  <pre><code>in header:
  class resizeLabel: public QLabel
  {
  public:
  resizeLabel(parent):{}
  };
  in cpp:
  resizeLabel *rl= new resizeLabel(this);
  QPixmap image(path);
  rl-&gt;setPixmap(image);
  rl-&gt;show();
  
  </code></pre>
  
  <p>I don't know how to make this image on the label resizable, so that user can resize it.</p>