title: How to increment Image name?
body: <p>as i was continuing to work on an application, i came across this issue an i still couldn't solve it for more than 4 days now. The issue is that i cannot increment the naming of the saved images to a certain number and then comeback to the number 0 and start overwriting those images until i reach than number again and so on repeatedly!
  let me give u an example : i want to save 10 Images and i want them to be names &quot;1.png&quot;, &quot;2.png&quot;......&quot;10.png&quot;, but i want the 11th one to overwrite the &quot;1.png&quot;, 12th to overwrite the &quot;2.png&quot; and so on.</p>
  <p>i've tried multiple approaches but none of them worked! :(</p>
  <p>here's my code, thank you :</p>
  <pre><code>QObject::connect(_image_capture.data(), &amp;QCameraImageCapture::imageCaptured, [=] (int id, QImage img) {
  
  QString fileName = QString::number(id)+ &quot;.png&quot;;
  QString path = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation) + &quot;/&quot; + fileName;
  img.save(path, &quot;PNG&quot;);
  
  });
  </code></pre>