Hi all
Me working on Qt4.2 for MAC O.S
Can anybody tells me that how can I write my own file in the selected path from the QFiledialog through Qt Programming;
Thanx
Hi all
Me working on Qt4.2 for MAC O.S
Can anybody tells me that how can I write my own file in the selected path from the QFiledialog through Qt Programming;
Thanx
Always Believe in Urself![]()
Merry
Hi
For eg.
the above file named "path" is created in the harddisk.Qt Code:
FILE *fh = NULL; fh=fopen("/path","wb+");To copy to clipboard, switch view to plain text mode
but I want to create this file on that path selected by me using QFiledialog which is stored in a string.
Qt Code:
"/home", |QFileDialog::DontResolveSymlinks);To copy to clipboard, switch view to plain text mode
Always Believe in Urself![]()
Merry
Hi,
you can do like this.
QString FileName= QFileDialog::getSaveFileName(this,"",Save","YrFile Name","");
fopen((const char*)FileName.toAscii() ,"wb+")
It will save the file YrFileName to the selected Path
Bookmarks