[Qt-interest] qprocess problem

henry cui hhenry.cui at gmail.com
Sun Mar 6 03:30:40 CET 2011


I got question for QProcess,code as following,these code can work fine under
window 7,but under window server 2007,there is nothing in variable list ,
I don't know why,it's seem to be that list read nothing from cmd
process,anyone can help will be much more appreciative

    QProcess process;
    process.setReadChannel(QProcess::StandardOutput);
    process.setReadChannelMode(QProcess::MergedChannels);
    process.startDetached(QString("wmic process where name='system' get
Caption,WorkingSetSize,PrivatePageCount,Handlecount,ThreadCount
/format:value"));
    process.waitForStarted();
    process.waitForFinished();
    qDebug()<<process.readAll();
    qDebug()<<list;


-- 
best,
henry cui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110306/b6e200d1/attachment.html 


More information about the Qt-interest-old mailing list