Re: [Ubuntu-phone] Access XML file in ~/

2014-01-07 Thread Israel
On 01/07/2014 10:02 AM, Christian Dywan wrote: 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

Re: [Ubuntu-phone] Access XML file in ~/

2014-01-07 Thread Christian Dywan
On 2014-01-07 17:02, Christian Dywan wrote: >> 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 >> >>

Re: [Ubuntu-phone] Access XML file in ~/

2014-01-07 Thread Christian Dywan
> 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 QStandardPat

Re: [Ubuntu-phone] Access XML file in ~/

2013-12-31 Thread MichaƂ Sawicz
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::ConfigL

Re: [Ubuntu-phone] Access XML file in ~/

2013-12-30 Thread Israel
Thanks for responding. My main issue is to access the file in a relative path of ~/ Every user has a different path to get to their home folder /home//.config/ I want it to access the XML file from a relative ~/.config/ so far it seems I can only hard code the location.. Permissions aren't my main

Re: [Ubuntu-phone] Access XML file in ~/

2013-12-30 Thread Nekhelesh Ramananthan
Hi, I think you can read any XML with XMLListModel. I think the issue you should be worrying about is the app permission. I am pretty sure that you wouldn't be able to access files outside your app folder without additional permissions. So whether you use C++ or QML XMLListModel, the issue would b

[Ubuntu-phone] Access XML file in ~/

2013-12-30 Thread Israel
Is there a pure QML way to access and read an XML file from the users home path? I can already read and list the XML bits I want using QtQuick.XmlListModel 2.0 But I want to access a file in the users ~/.config Do I have to use C++ or is there some component somewhere to read and write to one file