能否通过Qt知道运行在Symbian手机上的进程?

3
我知道使用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++显然已经过时,甚至连诺基亚也不再推荐使用它了。

谢谢。

1个回答

1
根据去年Qt Centre上的一篇帖子:

我需要哪些Qt API来获取QStringList的进程?

获取字符串列表必须以本地方式完成,所以我无法在这方面为您提供帮助。

这里有一篇关于使用Qt和Symbian C++ Together的Nokia Developer文章,它展示了如何使用PIMPL模式从Qt代码调用本地Symbian C++。当然,如果您想在其他平台上运行它,那么这将不得不进行移植。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接