mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
dxftoelmt: add Print standard error and filepath to the log file
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
#include <QProcess>
|
||||
#include <QMessageBox>
|
||||
#include <QDir>
|
||||
#include <iostream>
|
||||
#include <QDebug>
|
||||
|
||||
/**
|
||||
* @brief dxftoElmt
|
||||
@@ -46,6 +48,9 @@ QByteArray dxfToElmt(const QString &file_path)
|
||||
|
||||
if (process_.waitForFinished())
|
||||
{
|
||||
qInfo()<<"\n Start converting DXF file..........\n"<< file_path;
|
||||
qInfo()<< process_.readAllStandardError(); //Print standard error to log file
|
||||
|
||||
const auto byte_array{process_.readAll()};
|
||||
process_.close();
|
||||
return byte_array;
|
||||
|
||||
Reference in New Issue
Block a user