Re: Strange File Path Issue
nvm, I guess this is a known bug in KDE, which the file manager forces the default working directory to be home unless you make a link to the file and change the working directory that way or run from the command line.
Re: Strange File Path Issue
Code:
QFile file(qApp
->applicationDirPath
() + "/" + filename
);
//open the file: if (file.
open(QFile::WriteOnly)) { qDebug() << "File open: " << filename;
file.write(filedata);
file.close();
} else {
qDebug() << "File not open: " << filename;
}
did the trick
Re: Strange File Path Issue
Yes , you are right. This is known bug in KDE:
http://bugs.kde.org/show_bug.cgi?id=131010
There is a solution(it's not user friendly but...)