qfedu-qt-level/qtdemo01/mywidget2.h

28 lines
396 B
C
Raw Permalink Normal View History

2023-08-07 19:24:59 +08:00
#ifndef MYWIDGET2_H
#define MYWIDGET2_H
#include <QWidget>
#include <QPushButton>
#include <QLineEdit> // 单行输入框
#include <QDebug>
class MyWidget2 : public QWidget
{
Q_OBJECT
public:
explicit MyWidget2(QWidget *parent = nullptr);
public:
void getText(); // 自定义成员函数
private:
QPushButton *mBtn;
QLineEdit *mEdit;
signals:
};
#endif // MYWIDGET2_H