title: Save an Image into a dynamically created directory in Qt
body: <p>I am a beginner in Qt. I want to save a cropped image when clicking the button "save" :</p>
  
  <p><img src="https://i.stack.imgur.com/vy9gx.jpg" alt="This is the application I am developing, image label containing a cropped image which is to be saved]"></p>
  
  <p>I have to create a directory at the run time, name of the directory should be the text in the textEdit field near the "id" label and the name of the saved image file name should be the text in the textEdit field near the "name" label.</p>
  
  <p>I stored those values to  strings</p>
  
  <pre><code>QString id=ui-&gt;ids-&gt;toPlainText();
  
   QString names=ui-&gt;textEdit-&gt;toPlainText();
  </code></pre>
  
  <p>in on_saveButton_clicked event I have given the lines as</p>
  
  <pre><code>border2.save("C:\Qtworks\imagecrop_Jubilee\\"+ id+ "\\" +names+ ".jpg");
  </code></pre>
  
  <p>[border2 is the QImage containg the cropped image]</p>
  
  <p>But no image is being saved...</p>
  
  <p>please help me to solve this..</p>