QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
QgsRunProcess Class Reference

A class that executes an external program/script. More...

#include <qgsrunprocess.h>

Inheritance diagram for QgsRunProcess:
Inheritance graph
[legend]

Static Public Member Functions

static QgsRunProcesscreate (const QString &action, bool capture)
 
static QStringList splitCommand (const QString &command)
 Splits the string command into a list of tokens, and returns the list.
 

Detailed Description

A class that executes an external program/script.

It can optionally capture the standard output and error from the process and displays them in a dialog box.

On some platforms (e.g. iOS) , the process execution is skipped https://lists.qt-project.org/pipermail/development/2015-July/022205.html

Definition at line 47 of file qgsrunprocess.h.

Member Function Documentation

◆ create()

static QgsRunProcess * QgsRunProcess::create ( const QString &  action,
bool  capture 
)
inlinestatic

Definition at line 59 of file qgsrunprocess.h.

◆ splitCommand()

QStringList QgsRunProcess::splitCommand ( const QString &  command)
static

Splits the string command into a list of tokens, and returns the list.

Tokens with spaces can be surrounded by double quotes; three consecutive double quotes represent the quote character itself.

Since
QGIS 3.18

Definition at line 192 of file qgsrunprocess.cpp.


The documentation for this class was generated from the following files: