SeetaFace6/example/qt/seetaface_demo/inputfilesprocessdialog.h
2025-04-25 14:48:24 +08:00

49 lines
1.1 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef INPUTFILESPROCESSDIALOG_H
#define INPUTFILESPROCESSDIALOG_H
#include<QDialog>
class QLabel;
class QProgressBar;
class QPushButton;
class InputFilesThread;
class InputFilesProcessDlg :public QDialog{
//如果需要在对话框类中自定义信号和槽则需要在类内添加Q_OBJECT
Q_OBJECT
public:
//构造函数,析构函数
InputFilesProcessDlg(QWidget *parent, InputFilesThread * thread);
~InputFilesProcessDlg();
protected:
void closeEvent(QCloseEvent *event);
//在signal和slots中定义这个对话框所需要的信号。
signals:
//signals修饰的函数不需要本类实现。他描述了本类对象可以发送那些求助信号
//slots必须用private修饰
private slots:
void cancelClicked();
void setprogressvalue(float value);
void setinputfileend();
//申明这个对话框需要哪些组件
private:
QLabel *label;
QProgressBar *progressbar;
//QLabel *label2;
QPushButton *cancelButton;//, *closeButton;
InputFilesThread * workthread;
bool m_exited;
};
#endif // INPUTFILESPROCESSDIALOG_H