[Solved] Problem with creating new File!!!
Hello everyone,
It is almost about 2 days that I tried to create new text file in my project but it does not work!! I would like to create a textfile in my current project, which already is not existed.
Here is my code:
- QFile file;
- file.setFileName(file_name +".txt");//file_name is the QString, which I get as aparameter
- stream<<"Create Document";
- file.close();
I would be happy if someone could give me the tip.
ps: My operating system is Linux.
9 replies
try use that to
- QString filename = QFileDialog::getSaveFileName(this,"Salvar relatório ...",diretorio+"\\Desktop","Arquivos Pdf(*.pdf)");
You must log in to post a reply. Not a member yet? Register here!




