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. Some questions on QSettings settings(filePath,QSettings::IniFormat);
Forum Updated to NodeBB v4.3 + New Features

Some questions on QSettings settings(filePath,QSettings::IniFormat);

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.9k Views 2 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    As I understand , QSettings settings(filePath,QSettings::IniFormat) is to create QSettings object from file and the file is in ini format.

    In my case the os is linux and the user file is in .conf file format . The user .conf file is in same format when the tools save thes file

    // app setting needed for QSettings
    184 setOrganizationDomain("abc.com");
    185 setOrganizationName("ABC");
    186 setApplicationName(XYZPRODUCT_NAME);

    My query is in the example is settings file

    object%20 color = #00ffff

    now questions is why os %20 is inserted in .conf file for spaces in key name ?

    raven-worxR 1 Reply Last reply
    0
    • Q Qt Enthusiast

      As I understand , QSettings settings(filePath,QSettings::IniFormat) is to create QSettings object from file and the file is in ini format.

      In my case the os is linux and the user file is in .conf file format . The user .conf file is in same format when the tools save thes file

      // app setting needed for QSettings
      184 setOrganizationDomain("abc.com");
      185 setOrganizationName("ABC");
      186 setApplicationName(XYZPRODUCT_NAME);

      My query is in the example is settings file

      object%20 color = #00ffff

      now questions is why os %20 is inserted in .conf file for spaces in key name ?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Qt-Enthusiast
      try avoiding blanks in the key name when writing settings values.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        what is significance of NativeFormat and how it is different from IniFormat

        raven-worxR 1 Reply Last reply
        0
        • Q Qt Enthusiast

          what is significance of NativeFormat and how it is different from IniFormat

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Qt-Enthusiast
          see the docs

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          Q 1 Reply Last reply
          1
          • raven-worxR raven-worx

            @Qt-Enthusiast
            see the docs

            Q Offline
            Q Offline
            Qt Enthusiast
            wrote on last edited by
            #5

            @raven-worx

            I already went through but

            On Unix, this means textual configuration files in INI format. so on unix it is same as ini format

            raven-worxR 1 Reply Last reply
            0
            • Q Qt Enthusiast

              @raven-worx

              I already went through but

              On Unix, this means textual configuration files in INI format. so on unix it is same as ini format

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              @Qt-Enthusiast

              On Unix, NativeFormat and IniFormat mean the same thing, except that the file extension is different (.conf for NativeFormat, .ini for IniFormat).

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              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