ich hab mal wieder ein kleines Problem hier. Und zwar möchte ich ein Batchfile von meiner Qt Anwendung starten. Das Batchfile ist dazu gedacht eine Tex mittels pdflatex Datei zu erstellen.
Das Batch-Skript funktioniert problemlos, wenn ich es von Hand aufrufe, jedoch funktioniert es nicht wenn ich es per Anwendung starte.
Code: Alles auswählen
QProcess p;
p.start("cmd.exe", QStringList() << "/c" << "C:/development/src/fiaks/latex-vorlagen/paramtest/run_param.bat");
if (p.waitForStarted())
{
p.waitForFinished();
ui.plainTextEdit->insertPlainText( p.readAllStandardOutput());
}
Danke für eure Hilfe