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
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
>>
>>
> 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
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
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
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
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
7 matches
Mail list logo