I am a beginner in Qt. I want to save a cropped image when clicking the button "save" :
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.
I stored those values to strings
QString id=ui->ids->toPlainText(); QString names=ui->textEdit->toPlainText();
in on_saveButton_clicked event I have given the lines as
border2.save("C:\Qtworks\imagecrop_Jubilee\\"+ id+ "\\" +names+ ".jpg");
[border2 is the QImage containg the cropped image]
But no image is being saved...
please help me to solve this..