如何找到正在运行的进程并杀死QT中的进程? [英] how to find the running process and kill the process in QT?

查看:405
本文介绍了如何找到正在运行的进程并杀死QT中的进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为nokia mobile开发一个非常简单的应用程序.我的任务是查找当前正在运行的所有进程是什么?之后,我必须杀死(退出该应用程序,即相机或音乐播放器)该进程!我试图在Qprocess中找到一些简单的方法,但是没有列出当前进程的功能.诺基亚QT中有什么可能的方法,或者我必须使用symbianC ++ ????

i am developing a very simple application for nokia mobile.my task is to find what are all the process currently running ? after that i have to kill(exit that application i.e camera or musicplayer) that process! i have tried to find some simple method in Qprocess but there is no function to listout the current process. is there any possible way in NokiaQT or i have to use symbianC++????

推荐答案

Qt不提供执行此操作的API.您将需要使用适当的OS API.我对Symbian不熟悉,所以无法告诉您这可能是什么.

Qt does not provide an API to do this. You will need to use the appropriate OS API instead. I'm not familiar with Symbian, so I can't tell you what that might be.

这篇关于如何找到正在运行的进程并杀死QT中的进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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