You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Cigarette/220818-上海4相机装封箱无GPU/Cigarette/output_statistic.cpp

48 lines
1.1 KiB
C++

#include "output_statistic.h"
#include "QtCore\qfile.h"
#include "QtCore\qtextstream.h"
output_statistic::output_statistic(QDialog *parent)
: QDialog(parent)
{
ui.setupUi(this);
this->setWindowFlags(windowFlags()&~Qt::WindowContextHelpButtonHint);
}
output_statistic::~output_statistic()
{
}
void output_statistic::recMsgFromDialogSetup()
{
QFile file("../conf/camera0_statistic.txt");
if (file.open(QIODevice::ReadOnly | QIODevice::Text))
{
QTextStream in(&file);
ui.textBrowser_1->setText(in.readAll());
}
file.close();
file.setFileName("../conf/camera1_statistic.txt");
if (file.open(QIODevice::ReadOnly | QIODevice::Text))
{
QTextStream in(&file);
ui.textBrowser_2->setText(in.readAll());
}
file.close();
file.setFileName("../conf/camera2_statistic.txt");
if (file.open(QIODevice::ReadOnly | QIODevice::Text))
{
QTextStream in(&file);
ui.textBrowser_3->setText(in.readAll());
}
file.close();
file.setFileName("../conf/camera3_statistic.txt");
if (file.open(QIODevice::ReadOnly | QIODevice::Text))
{
QTextStream in(&file);
ui.textBrowser_4->setText(in.readAll());
}
file.close();
this->show();
}