Results 1 to 4 of 4

Thread: QSettings equivalent in QML?

  1. #1

    Default QSettings equivalent in QML?

    Hi,

    I'm doing my first steps in QML and I cannot seem to find the equivalent of QSettings in QML. I've checked some examples that save to online/offline storage, but no plain old QSettings.

    What is the QML equivalent of a .ini?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSettings equivalent in QML?

    You could use the Binding element and then save the settings on C++ side.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3

    Default Re: QSettings equivalent in QML?

    Indeed, but I consider this a fallback solution...
    I guess the point of QML is to be able to create a complete app without touching C++, right?

    What is actually the recommended way to save settings in QML? A SQL database? Seems overkill to me...

  4. #4
    Join Date
    Aug 2012
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: QSettings equivalent in QML?

    1.with JavaScript Globle......
    2.*.ini

Similar Threads

  1. Migrate Qt3 QSettings to Qt4 QSettings
    By hvengel in forum Qt Programming
    Replies: 3
    Last Post: 22nd February 2008, 04:21
  2. equivalent
    By deepa.selvaraj in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 19:33
  3. Qt-equivalent of pthread_once
    By ShaChris23 in forum Newbie
    Replies: 1
    Last Post: 15th October 2007, 22:57
  4. what is equivalent to _bstr_t?
    By steg90 in forum Newbie
    Replies: 5
    Last Post: 14th May 2007, 10:57
  5. CMapWordToOb QT4 equivalent
    By steg90 in forum Newbie
    Replies: 3
    Last Post: 10th May 2007, 09:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.