我知道使用Symbian C++是可能的
作为以下代码
void GetProcessListL(void)
{
TFullName res;
TFindProcess find;
while(find.Next(res) == KErrNone)
{
RProcess ph;
ph.Open(find);
// here you can use
// functions of the RProcess
// to get more information
// of the selected process.
// res will have the process name..
ph.Close();
}
}
然而,有没有一种只使用Qt的方法可以做到这一点?
由于Symbian C++显然已经过时,即使是诺基亚也不建议再使用它。
谢谢,
根据去年Qt中心的一篇帖子:
我需要什么Qt API才能获得QStringList的进程?
正在获取字符串列表必须在中完成本地方式,所以我不能在那里帮你。
以下是诺基亚开发人员关于使用Qt和Symbian C++使用PIMPL模式的文章,它展示了如何从Qt代码调用原生Symbian C++。如果你想在其他平台上运行它,当然必须移植它。