Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSettings and duplicate keys acting like array

QSettings and duplicate keys acting like array

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mhusari
    wrote on last edited by
    #1

    Hello,

    Is it possible to use QSettings to parse following ini-format?

    [Files]
    File = "C:\asdfasdf1.txt"
    File = "C:\asdfasdf2.txt"
    File = "C:\asdfasdf3.txt"

    Looks like a list of files, should be a list of files but might not be standard way to handle "arrays" in ini-files. Problem is that I cannot change that format since it is used by other software, I just need to read and display those values in my software.

    Thanks in advance.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      It should be possible, yes. Check out this part of the documentation: "link":http://doc.qt.io/qt-5/qsettings.html#section-and-key-syntax.

      (Z(:^

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mhusari
        wrote on last edited by
        #3

        [quote author="sierdzio" date="1418370140"]It should be possible, yes. Check out this part of the documentation: "link":http://doc.qt.io/qt-5/qsettings.html#section-and-key-syntax.[/quote]

        I have looked at the documentation, also that section and to my understanding it does not provide any help for this specific situation.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved