connect(process, &QProcess::errorOccurred, this, [=]{
qDebug()<<process->errorString();
qDebug()<<process->arguments();
qDebug()<<process->workingDirectory();
qDebug()<<process->processId();
});
connect(process, static_cast<void
(QProcess::*)(int,
QProcess::ExitStatus)>
(&QProcess
::finished),
this,
[=](int exitCode,
QProcess::ExitStatus exitStatus
){ qDebug()<<" process finished";
});
connect(process, &QProcess::started, this, [=]{
qDebug()<<" process started";
});
QString winPath
= QString::fromUtf8(qgetenv
("windir")) + "\\System32\\";
process->setWorkingDirectory(winPath);
process
->start
("ie4uinit.exe",
QStringList()<<
"-ClearIconCache");
process->waitForStarted();
QProcess* process = new QProcess();
connect(process, &QProcess::errorOccurred, this, [=]{
qDebug()<<process->errorString();
qDebug()<<process->arguments();
qDebug()<<process->workingDirectory();
qDebug()<<process->processId();
});
connect(process, static_cast<void(QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), this, [=](int exitCode, QProcess::ExitStatus exitStatus){
qDebug()<<" process finished";
});
connect(process, &QProcess::started, this, [=]{
qDebug()<<" process started";
});
QString winPath = QString::fromUtf8(qgetenv("windir")) + "\\System32\\";
process->setWorkingDirectory(winPath);
process->start("ie4uinit.exe", QStringList()<<"-ClearIconCache");
process->waitForStarted();
To copy to clipboard, switch view to plain text mode
Bookmarks