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
Qt 6.11 is out! See what's new in the release blog

QSettings

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 1.1k 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.
  • S Offline
    S Offline
    satyanarayana143
    wrote on last edited by
    #1

    Hi friends,

    I am using qt 5.15.2 in raspberry pi .
    I am loading and Saving values using QSettings ini file but when application is running the QSettings file is locking what will be the issue any solutions.

    jsulmJ 1 Reply Last reply
    0
    • S satyanarayana143

      Hi friends,

      I am using qt 5.15.2 in raspberry pi .
      I am loading and Saving values using QSettings ini file but when application is running the QSettings file is locking what will be the issue any solutions.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @satyanarayana143 said in QSettings:

      QSettings file is locking

      In what way is it locking? What happens? What does not work?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        satyanarayana143
        wrote on last edited by
        #3

        Application is running and ini file available in application folder but Creating another ini file with ini.lock when application running.

        jsulmJ 1 Reply Last reply
        0
        • S satyanarayana143

          Application is running and ini file available in application folder but Creating another ini file with ini.lock when application running.

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @satyanarayana143 said in QSettings:

          but Creating another ini file with ini.lock when application running

          What is the problem with that? As soon as you close your settings file ini.lock should disappear.

          If you read documentation (https://doc.qt.io/qt-5/qsettings.html) you will find:
          "For QSettings::IniFormat, it uses advisory file locking and a smart merging algorithm to ensure data integrity.".

          If you don't want this try to call https://doc.qt.io/qt-5/qsettings.html#setAtomicSyncRequired with false as parameter.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • S Offline
            S Offline
            satyanarayana143
            wrote on last edited by
            #5

            after closing the application it is not going that is the problem

            jsulmJ 1 Reply Last reply
            0
            • S satyanarayana143

              after closing the application it is not going that is the problem

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @satyanarayana143 Did you try what I suggested?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              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