Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
実行中のプロセスを新しいファイルに置き換える必要があるQtベースのアップデータアプリケーションがあります。Windowsでは、プロセスの実行中にアップデーターが失敗します。
Firefox.exeなどの名前でプロセスを見つけ、Qtを使用してそれを強制終了する方法はありますか?
次のようにシステムを呼び出すことができます:taskkill / f / im firefox.exe
Qtでこれを行うためのAPIはありません。つまり、これを行う唯一の方法は、プラットフォーム固有のコードを使用することです。