Re: [SailfishDevel] Hardcoded Path

2015-03-13 Thread ziobilly94
Thanks, very helpful Il gio mar 12 14:42:19 2015 GMT+0100, Kaj-Michael Lang scrive: On to, 2015-03-12 at 14:33 +0100, Antonio Mancini wrote: I want to use the XDG Base Directory Specification but i don't know how to use it. Use should use Qts QStandardPaths to get various locations that

[SailfishDevel] Hardcoded Path

2015-03-12 Thread Antonio Mancini
Hi all, I have some functions for writing/reading files written in c++ I want to use the XDG Base Directory Specification but i don't know how to use it. For example at the moment i have the directory set like this: QDir dir(/home/nemo/.local/share/harbour-sailtris); if (!dir.exists())

Re: [SailfishDevel] Hardcoded Path

2015-03-12 Thread Kaj-Michael Lang
On to, 2015-03-12 at 14:33 +0100, Antonio Mancini wrote: I want to use the XDG Base Directory Specification but i don't know how to use it. Use should use Qts QStandardPaths to get various locations that you can use for your files. See http://doc.qt.digia.com/qt-5.2/qstandardpaths.html for