Code: Alles auswählen
QProcess::startDetached(firefox www.qt-forum.de)Code: Alles auswählen
QProcess::startDetached(firefox www.qt-forum.de)Code: Alles auswählen
QProcess::startDetached("\"C:\\Programme\\Mozilla Firefox\\firefox.exe\" www.qt-forum.de")Code: Alles auswählen
bool QProcess::startDetached ( const QString & program, const QStringList & arguments, const QString & workingDirectory, qint64 * pid = 0 ) [static]Qt4.4-tp1 hat geschrieben:Starts the program program with the arguments arguments in a new process, and detaches from it. Returns true on success; otherwise returns false. If the calling process exits, the detached process will continue to live.
On Unix, the started process will run in its own session and act like a daemon. On Windows, it will run as a regular standalone process.
On Windows, arguments that contain spaces are wrapped in quotes.
The process will be started in the directory workingDirectory.
If the function is successful then *pid is set to the process identifier of the started process.