Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30663

Add ability to change Qt Creator settings from env variables / command line

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 13.0.0
    • All Other Issues
    • None
    • All

    Description

      Qt Creator saves its global settings in the qtcreator.ini and other .xml files.

      sdktool can be used to change some of .xml files, but there is no option to change the qtcreator.ini from command line for example.

      Qt Creator has some cli functionality, but reading / saving settings is not present.

      Alternatively having support for environment variables can help configure Qt Creator behaviour globally or per project via a CMakeLists.txt.shared file like:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE QtCreatorProject>
      <qtcreator>
        <data>
        <variable>ProjectExplorer.Project.PluginSettings</variable>
        <valuemap type="QVariantMap">
         <valuelist type="QVariantList" key="ProjectExplorer.Project.Environment">
          <value type="QString">QTC_CMAKE_USE_JUNCTIONS=1</value>
         </valuelist>
        </valuemap>
       </data>
       <data>
        <variable>Version</variable>
        <value type="int">22</value>
       </data>
      </qtcreator>
      

       

      Attachments

        Issue Links

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

          Activity

            People

              hjk hjk
              cadam Cristian Adam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes