[Qt-interest] QSettings, linux, overwties backup files?

Stephen Jackson spjackson42 at gmail.com
Thu Feb 18 18:38:00 CET 2010


On 17 February 2010 14:47,  ext-butch.howard wrote:
> I am using QSettings to read and write files in the QSettings::IniFormat. I noticed that when there is also a file in the folder created by vi as as backup ( i.e. settings.ini~ ) that this backup file will get overwritten with the content of the QSettings when it writes the settings.ini file.  If the vi backup file does not exist in the folder at the time QSettings writes the settings file, a backup file is not created (or at least not left around when it is finished).
>
> Is this behavior of overwriting a file in the backup-filename-format ( NAME~ ) expected? Is it some unintended side affect of some of the file save/sync processing?
>
> Package: libqt4-core
> Version: 4.5.3~git20090723-0maemo6+0m5
>

I see you have asked this question twice and got no replies. So here's
my contribution.

The behaviour you describe does not occur with any version of Qt I
have used on either Linux or Windows (in particular various 4.5.x and
4.6.x versions).

I would guess from the git reference above that you are seeing this on
Maemo. If backup files are being overwritten by QSettings on this
platform, then that sounds like a bug.

-- 
HTH,

Stephen Jackson




More information about the Qt-interest-old mailing list