Can you configure Qt Creator to kill the running application before building or running?

前端 未结 5 445
耶瑟儿~
耶瑟儿~ 2021-02-04 08:47

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

5条回答
  •  余生分开走
    2021-02-04 09:25

    To whomever might stumble here later, an easier way to o this is to put a "killall" command (as suggested by tangbongbong) is the first build step under Projects(ctrl+5) -> Build and Run

    In the screenshot below my executable name was "Tutano" and I added the -9 option to ensure it would be killed.

    Screenshot - sorry, I'm new here so can't post an image directly

提交回复
热议问题