您可以配置 Qt Creator 在构建或运行之前终止正在运行的应用程序吗? [英] Can you configure Qt Creator to kill the running application before building or running?

查看:31
本文介绍了您可以配置 Qt Creator 在构建或运行之前终止正在运行的应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个 QApplication,我发现在重建和重新运行它之前我经常忘记关闭我的应用程序.当我不小心查看 10 分钟前构建的应用程序实例并希望看到 30 秒前的代码更改时,这就会成为一个问题.

I'm developing a QApplication and I find that I often forget to close my application before rebuilding and re-running it. This becomes a problem when I accidentally look at an instance of my application built 10 minutes ago and expect to see code changes from 30 seconds ago.

这也很烦人,因为我必须将手一直移到鼠标上,将鼠标一直移到正在运行的应用程序上,每次我想重建时都关闭它,而且我很懒惰 而我不想那样做.

It is also annoying because I have to move my hand all the way over to the mouse, move the mouse all the way over to the running application, and close it every time I want to rebuild and I am lazy and I don't want to do that.

是否可以将 Qt Creator 配置为在我开始构建或再次运行时关闭我的 QApplication?

Is it possible to configure Qt Creator to close my QApplication when I start building or running it again?

推荐答案

Qt Creator 中有一个选项可以做到这一点:

There is an option to do that in Qt Creator:

  1. 打开首选项 => Build &运行 => 常规
  2. 将构建前停止应用程序"从无"更改为相同项目"

这篇关于您可以配置 Qt Creator 在构建或运行之前终止正在运行的应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆