[Qt-creator] Displaying the user environment changes

Christian Kandeler Christian.Kandeler at qt.io
Wed Feb 26 12:37:28 CET 2020

On Wed, 26 Feb 2020 11:17:50 +0100
Markus Redeker <markus at froglogic.com> wrote:

> I am currently working on a plugin that changes the build environment
> settings of a project with
> BuildConfiguration::setUserEnvironmentChanges(). 

That function is intended to update the environment *from* the widget, i.e. the reverse flow of information to what you intend. 

> Setting the environment variables works, but I cannot get the build environment
> widget to display the new environment changes. Is there a way to do
> this?

Retrieve the environment aspect from the build config via aspect<EnvironmentAspect>() and call setUserEnvironmentChanges() on that object.


More information about the Qt-creator mailing list