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.
34 lines
750 B
C++
34 lines
750 B
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();
|
|
this->show();
|
|
}
|