QSettings - where is the location of the ini file?

前端 未结 9 2054
悲哀的现实
悲哀的现实 2021-02-03 21:45

I\'m using QSettings to store some data as ini file in Windows. I want to see the ini file, but I don\'t know what is the location of the ini file.

This is

9条回答
  •  野的像风
    2021-02-03 21:57

    On Mac OSX, I found the file under at ~/Library/Preferences

    The QSettings class provides persistent platform-independent application settings. Users normally expect an application to remember its settings (window sizes and positions, options, etc.) across sessions. This information is often stored in the system registry on Windows, and in XML preferences files on Mac OS X. On Unix systems, in the absence of a standard, many applications (including the KDE applications) use INI text files

    http://doc.qt.io/archives/qt-4.7/qsettings.html

提交回复
热议问题