You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
755 B
43 lines
755 B
#ifndef RECEPTIONIST_H
|
|
#define RECEPTIONIST_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QPushButton>
|
|
#include <QPainter>
|
|
#include <QTextCodec>
|
|
#include <QSqlDatabase>
|
|
#include <QSqlQuery>
|
|
#include <QSqlError>
|
|
#include <QDebug>
|
|
#include <QLabel>
|
|
#include <QTableWidgetItem>
|
|
#include <QVBoxLayout> // 添加这一行
|
|
|
|
namespace Ui {
|
|
class receptionist;
|
|
}
|
|
|
|
class receptionist : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit receptionist(QWidget *parent = nullptr);
|
|
~receptionist();
|
|
|
|
private:
|
|
Ui::receptionist *ui;
|
|
QLabel *bg;
|
|
QSqlDatabase db;
|
|
void search(QString str);
|
|
void showall();
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *e);
|
|
private slots:
|
|
void on_pushButton_clicked();
|
|
void onflash();
|
|
};
|
|
|
|
#endif // RECEPTIONIST_H
|