[Qt-creator] switching RunConfigurations in the code

Daniel Teske Daniel.Teske at theqtcompany.com
Fri May 22 13:47:43 CEST 2015


On Friday 22 May 2015 13:32:25 Petr Vanek wrote:
> hi all,
> 
> my plugin exposes two types of
> ProjectExplorer::LocalApplicationRunConfiguration:
> 
>      class QorusExecutableRunConfiguration : public
> ProjectExplorer::LocalApplicationRunConfiguration
> and
>      class QoreExecutableRunConfiguration : public
> ProjectExplorer::LocalApplicationRunConfiguration
> 
> my idea is to switch between these configurations whenever the current
> edited document changes. Then the lookup into registered mime types
> shows what run configuration should be used.
> But I cannot find how I can set the current run configuration in the
> code. I'm able to do it only by hands in the UI - MiniProjectTargetSelector.
> 
> Is there some hidden build/run target handler inside qt creator, please?
> 
project()->target()->setActiveRunConfiguration(), but that's sounds very 
strange to want.

daniel



More information about the Qt-creator mailing list