hey guys,
I'm new to Qt. Anyway, i wanted to use QFileDialog to save file into a directory. So if the file exist before and it should prompt the whether to overwrite msg.
from what i read, it seems that the overwrite msg is automatically enabled already?
but mine didn't prompt the msg. Any idea guys?
Below is my sample code:
QString filePath = QFileDialog::getSaveFileName(NULL, tr("CSV files (*.csv)"), this, NULL, tr("Export To"));
if(filePath.isEmpty())
return;
if(filePath.find(".csv") == -1)
filePath += ".csv";
Thanx
Bookmarks