QtExamples/QtMeatObjectEx/ExWidget.h

36 lines
585 B
C
Raw Permalink Normal View History

2019-08-16 23:56:50 +08:00
#ifndef EXWIDGET_H
#define EXWIDGET_H
#include <QWidget>
#include "ExPerson.h"
namespace Ui {
class ExWidget;
}
class ExWidget : public QWidget
{
Q_OBJECT
public:
explicit ExWidget(QWidget *parent = nullptr);
~ExWidget();
private slots:
void onAgeChange(int val); //自定义的槽函数
void onSpinValChange(int val);
void onBtnClear(); //UI界面的槽函数
void onBtnBoyInc();
void onBtnGrilInc();
void onClassInfo();
private:
Ui::ExWidget *ui;
ExPerson* m_boy;
ExPerson* m_girl;
};
#endif // EXWIDGET_H