Creator: Clone/Copy dozens of run configurations?
-
wrote on 26 Feb 2025, 08:41 last edited by
When I upgrade to a new version of Qt, I add build configurations for the new version, but keep the old one around, in case I want to compare behavioral changes or so.
The thing is...when I create the new build configurations, they come with empty run configurations. I have almost 50 executables, and manually clicking through them to set the correct working directory and (in some cases) command line arguments is...tedious.
Is there any way to simply clone the original run configurations from my previous version of Qt? Or to somehow mass-edit run configurations, so I can set things up more quickly?
I sometimes mass-edit the .user file, but this is hard in this case: The keys for the working directory don't yet exist, so a simple search-and-replace is not possible.
-
When I upgrade to a new version of Qt, I add build configurations for the new version, but keep the old one around, in case I want to compare behavioral changes or so.
The thing is...when I create the new build configurations, they come with empty run configurations. I have almost 50 executables, and manually clicking through them to set the correct working directory and (in some cases) command line arguments is...tedious.
Is there any way to simply clone the original run configurations from my previous version of Qt? Or to somehow mass-edit run configurations, so I can set things up more quickly?
I sometimes mass-edit the .user file, but this is hard in this case: The keys for the working directory don't yet exist, so a simple search-and-replace is not possible.
wrote on 26 Feb 2025, 08:48 last edited by@Asperamanca
Hi. I don't know any of the details you are talking about, but with 50+ to do doesn't this sound like a little script job? Are you needing to change a.user
or other text file?sed
or similar? Assuming you are using Linux rather than Windoze! -
wrote on 26 Feb 2025, 13:10 last edited by
Windows :-)
I don't feel like starting with an XML parser, build up a model, and traverse that model to update my configurations, especially since the .user file is an internal file, so formats could change with any Creator version.
But it sounds like there is no convenient built-in way to handle many configurations in Creator... -
Windows :-)
I don't feel like starting with an XML parser, build up a model, and traverse that model to update my configurations, especially since the .user file is an internal file, so formats could change with any Creator version.
But it sounds like there is no convenient built-in way to handle many configurations in Creator...wrote on 26 Feb 2025, 13:33 last edited byYou are talking about the configuration in QtCreator's
Projects -> Build/Run
tab/pane, right?
At least in QtCreator itself you can clone configurations... maybe check the QtC source how it's done? -
@Asperamanca
Hi. I don't know any of the details you are talking about, but with 50+ to do doesn't this sound like a little script job? Are you needing to change a.user
or other text file?sed
or similar? Assuming you are using Linux rather than Windoze!wrote on 27 Feb 2025, 07:51 last edited by@JonB said in Creator: Clone/Copy dozens of run configurations?:
Assuming you are using Linux rather than Windoze!
Still on Windows I suggest to use
sed
. It is easily installed by Scoop (https://scoop.sh) or Chocolatey (https://chocolatey.org). (I'm using Scoop.) -
@JonB said in Creator: Clone/Copy dozens of run configurations?:
Assuming you are using Linux rather than Windoze!
Still on Windows I suggest to use
sed
. It is easily installed by Scoop (https://scoop.sh) or Chocolatey (https://chocolatey.org). (I'm using Scoop.)wrote on 27 Feb 2025, 08:11 last edited by JonB@SimonSchroeder
sed
etc. does not exist on Windows --- it's simply cheating!
6/6