Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QProcess with psql in linux
saulozitos last edited by
Hello everyone, I'm having a problem executing a command to load the database using QProcess.
QString programa = "psql";
cmd << QString("psql -d DBName < %1 ").arg(filePathAndName);
What is wrong with my execution?
Hi and welcome to devnet,
cmdvariable content is wrong. Each parameter of the process should be passed as a separate instance.
Also, why do you have cmd twice in the code base ?