Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-4443

QSettings: setDefaultFormat()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.6.0
    • None
    • Documentation
    • None
    • 8e6d1e72fdb2cf416263c116a4e58560453face6

      The documentation is quite hazy on the effect of setDefaultFormat() and the use of native settings when using certain constructors in QSettings. A suggested example that would help clarify the usage of QSettings would look something like this:-

      When using the following constructor:-

      QSettings::QSettings ( const QString & organization, const QString & application = QString(), QObject * parent = 0 )

      the system will use the native format. In the case of Windows (R) this is the registry. Calling

      void QSettings::setDefaultFormat ( Format format )

      will have no effect in this case.

      If the format must be explicitly defined, the constructor that includes the format parameter should be used. e.g.

      QSettings ( Format format, Scope scope, const QString & organization, const QString & application = QString(), QObject * parent = 0 )

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            gbk Martin Smith (Qt)
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes