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

API to change QSetting:: applicationName() if application name is changed afterwards

    XMLWordPrintable

Details

    • Windows

    Description

      In a Application constructor user call QCoreApplication::setApplicationName() but since QSettings member variable of class and is created before setApplicationName is called, then QSettings::applicationName() returns the default name (i.e. the exe base name).

      Sample project attached. 

      Workaround for this is to have pointer variable for QSetting and define it after setting application name. 

      But it would be great there is some API to reset application name for QSetting Variable too. 

       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes