.cpp
#include "QtImageShow02.h"
#include<QPushButton>
#include<QLineEdit>
#include<QLabel>
#include<QTimer>
#include<QGroupBox>
#include<QVBoxLayout>
#include<QRadioButton >
#include<io.h>
#include <QFileDialog>
#include <QMessageBox>
QtImageShow02::QtImageShow02(QWidget *parent)
: QMainWindow(parent)
{
ui.setupUi(this);
getFilesPath();
img_index = 0;
img_index2 = 0;
flag = 0;
flag2 = 0;
fTimer = new QTimer(this);
bTimer = new QTimer(this);
}
void QtImageShow02::setBtnText(QString string)
{
ui.btnOpen->setText(string);
}
void QtImageShow02::setBtnText2(QString string)
{
ui.pushButton_2->setText(string);
}
void QtImageShow02::on_btnOpen_clicked()
{
isClicked();
}
void QtImageShow02::on_pushButton_2_clicked()
{
isClicked2();
}
void QtImageShow02::on_exit_button_clicked()
{
exitViewImg();
}
void QtImageShow02::getFilesPath()
{
char * srcfilePath = "E://zj//img//";
vector<string> files;
findFiles(srcfilePath