QProcess process;
process.start("gedit", QStringList() << docPath);
the same as above
QProcess process;
process.start("gedit", QStringList() << "/home/oDx/Documents/a.txt");
Also, read this.
QProcess process;
process.start("gedit", QStringList() << docPath);
the same as above
QProcess process;
process.start("gedit", QStringList() << "/home/oDx/Documents/a.txt");
Also, read this.