How to code "variable " QProcess - similar to a function ?
Unsolved
General and Desktop
-
C/C++ function accepts variable parameter...
My task is to have my QProcess to perform similarly...
My QProcess emits "readyRead" SIGNAL connected to a slot.I like to pass variable "command" to QProcess and use "readyRead" for further processing.
I can define QProcess for each task and its associated / connected slot...
Is there a different way to accomplish the task ?
std::string command = Command + std::string(" | tee ") + Database + std::string(" | tee /tmp/temp");
QP->start("/bin/sh", QStringList() << "-c" << command.c_str());