QString sbrowser
= "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE";
qsl.push_back("http://www.google.com");
pbrowser->start(sbrowser, qsl);
QString sbrowser = "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE";
QProcess *pbrowser = new QProcess();
QStringList qsl;
qsl.push_back("http://www.google.com");
pbrowser->start(sbrowser, qsl);
if(QProcess::FailedToStart == pbrowser->error()) QMessageBox::information(0,"", "1");
else if(QProcess::Crashed == pbrowser->error()) QMessageBox::information(0,"", "2");
else if(QProcess::Timedout == pbrowser->error()) QMessageBox::information(0,"", "3");
else if(QProcess::WriteError == pbrowser->error()) QMessageBox::information(0,"", "4");
else if(QProcess::ReadError == pbrowser->error()) QMessageBox::information(0,"", "5");
else if(QProcess::UnknownError == pbrowser->error()) QMessageBox::information(0,"", "6");
QProcess::startDetached(sbrowser, qsl);
To copy to clipboard, switch view to plain text mode
Bookmarks