PDA

View Full Version : QFileInfo::filePath and std::ofstream



TorAn
1st December 2010, 23:43
I am using QFileInfo::filePath method to open the file with std::ifstream. It appears that "/" delimeter is not recognized by std::ifstream on Windows.

Question: How to get "native" file path out of QFileInfo in order to use it with std::stream classes?

ChrisW67
2nd December 2010, 00:55
QDir::toNativeSeparators()