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. [SOLVED] Gettings all group names using QSettings..?
QtWS25 Last Chance

[SOLVED] Gettings all group names using QSettings..?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 9.7k Views
  • 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.
  • V Offline
    V Offline
    vezprog
    wrote on last edited by
    #1

    Is there any way to get all group/section names in an ini file?

    for example:
    [1]
    key1=1
    key2=2

    [2]
    key1=1
    key2=2

    [3]
    key1=1
    key2=2

    Get a QStringList that contains "1" "2" and "3"?

    I've already opened the file and can get specific keys. Now I just need this...

    Thanks in advance.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vsorokin
      wrote on last edited by
      #2

      @QStringList QSettings::childGroups () const
      @

      bq. Returns a list of all key top-level groups that contain keys that can be read using the QSettings object

      --
      Vasiliy

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        "This thread":http://developer.qt.nokia.com/forums/viewthread/7045 might be of interest for you too.

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vezprog
          wrote on last edited by
          #4

          Thanks! Worked great!

          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