I'm using QFileDialog::getSaveFileName to save a file.
QString saveFileName
= QFileDialog::getSaveFileName(this,
"Save As",
"./untitled.dat",tr
("files(*.dat )"));
saveFile(saveFileName);
reply
= QMessageBox::information(this, tr
(" "),
"File Saved");
QString saveFileName = QFileDialog::getSaveFileName(this,"Save As","./untitled.dat",tr("files(*.dat )"));
saveFile(saveFileName);
QMessageBox::StandardButton reply;
reply = QMessageBox::information(this, tr(" "), "File Saved");
To copy to clipboard, switch view to plain text mode
I cannot understand how to recognize whether Save has been pressed or Cancel button. Currently my application saves the file even if i press cancel.
Bookmarks