Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QSettings: maximum value size?
Forum Updated to NodeBB v4.3 + New Features

QSettings: maximum value size?

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 4 Posters 4.9k 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.
  • Q Offline
    Q Offline
    QtQueries
    wrote on 17 Mar 2011, 08:09 last edited by
    #1

    Hi

    What's the maximum size of data I could expect to store in a QSettings key/value pair? Is it capped, or does it just depend on device storage space?

    Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on 17 Mar 2011, 08:17 last edited by
      #2

      What exactly do you mean by maximum size of data?

      Amount of data in the value?
      Afaik there is no limit, but that might depend, where you store it.
      Default on window sis the registry, that might have some limits. If you store in a file (default on Linux) I think there should be no limits.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on 17 Mar 2011, 09:02 last edited by
        #3

        I think there are limits for the windows registry, actually.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on 17 Mar 2011, 11:11 last edited by
          #4

          If you force QSettings to use the ini file backend then you should be able to store anything that you can fit into a QVariant and have disk/memory space for.

          How practical this is in reality I am not sure. If you have a lot of data it might be better to store the data in a separate file that you can read/write incrementally and then store the filename for that using QSettings. That would give you greater control on how and when the bulky data is read/written.

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0

          1/4

          17 Mar 2011, 08:09

          • Login

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