QSettings
-
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. -
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.@satyanarayana143 said in QSettings:
QSettings file is locking
In what way is it locking? What happens? What does not work?
-
Application is running and ini file available in application folder but Creating another ini file with ini.lock when application running.
-
Application is running and ini file available in application folder but Creating another ini file with ini.lock when application running.
@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.
-
after closing the application it is not going that is the problem
-
after closing the application it is not going that is the problem
@satyanarayana143 Did you try what I suggested?