title: Create Spin Progress bar in Qt
body: <p>Create Spin Progress bar in Qt, I want to show progress bar like the one which appears while loading. Please Find Image <img src="https://i.stack.imgur.com/JHT24.png" alt="enter image description here"></p>
  
  <p>My code goes like this</p>
  
  <pre><code>    QProgressBar *pgbar = new QProgressBar();
      pgbar-&gt;resize(500,25);
      pgbar-&gt;setOrientation(Qt::Horizontal);
      pgbar-&gt;setRange(0,99);
      pgbar-&gt;setValue(10);
      pgbar-&gt;show();
      installOnDevice(destinationSavePath);
      pgbar-&gt;hide();
  </code></pre>
  
  <p>here <code>installOnDevice(destinationSavePath);</code> takes time to process. Currently I am showing <code>Processbar</code>, I dont want to show <code>processbar</code>. Can't I replace with some progress which shows <code>loading image</code> (Rotating) or something similar to that</p>