← Back to team overview

ubuntu-phone team mailing list archive

Re: Access XML file in ~/

 

On 30.12.2013 23:35, Israel wrote:
I want it to access the XML file from a relative ~/.config/
so far it seems I can only hard code the location..

Check out QStandardPaths:
http://qt-project.org/doc/qt-5.0/qtcore/qstandardpaths.html

QStandardPaths::writableLocation with QStandardPaths::ConfigLocation should give you the interesting path.

Otherwise QDir::homePath() could be used, too.

So yeah, you need some slim C++ for that.
--
Michał (Saviq) Sawicz <michal.sawicz@xxxxxxxxxxxxx>
Canonical Services Ltd.


References