Get Application Name ..
- #include <QtCore/QCoreApplication>
- #include <QProcess>
- #include <QDebug>
- int main(int argc, char *argv[])
- {
- QProcess process;
- // process.start("cmd.exe /C echo test");
- process.start("wmic.exe /OUTPUT:STDOUT PROCESS get Caption");
- process.waitForStarted(1000);
- process.waitForFinished(1000);
- qDebug() << "Read" << list.length() << "bytes";
- qDebug() << list;
- }
I use this program to list out all process which are running.. but i want to get application names which started by user and they are at running state..like vlc media player,ms word etc. ..
Thanks in advance..
Gerolf: Added code tags
1 reply
Please use code wrappings as explained here [qt-project.org] This makes your code readable.
You must log in to post a reply. Not a member yet? Register here!


