qfedu-basic-level/day11/switchab/awidget.h

33 lines
443 B
C
Raw Permalink Normal View History

2023-06-27 22:44:31 +08:00
#ifndef AWIDGET_H
#define AWIDGET_H
#include <QWidget>
#include <QPushButton>
#include <QDebug>
#include "bwidget.h"
class aWidget : public QWidget
{
Q_OBJECT
private:
bWidget *b;
public slots:
void toBHandle();
void returnAHandle();
signals:
void toBSignal();
private:
QPushButton *btnToB;
public:
aWidget(QWidget *parent = nullptr);
~aWidget();
};
#endif // AWIDGET_H