shows running applications to a QTableView on Windows or Ubuntu
shows running applications to a QTableView on Windows or Ubuntu
I want to get the list of programs that shows in the Applications tab of Windows Task Manager and then shows them in a QTableView , I wonder which Windows APIs should I use ?
If I want to do the same thing on Ubuntu ,then which Ubuntu APIs should I use ?
[解决办法]
You can use the QProcess running a shell commed like "top",read all return.You show these infomation in a QTableView.
[解决办法]
可以用QProcess,但是更详细的信息需要用到系统的API。就像楼上说的那样,在linux中,可以读返回值。
具体的API用法可以google..