qfedu-qt-level/qtdemo03/form8.h

30 lines
425 B
C++

#ifndef FORM8_H
#define FORM8_H
#include <QWidget>
#include <QKeyEvent>
#include <QEvent>
#include <QDebug>
namespace Ui {
class Form8;
}
class Form8 : public QWidget
{
Q_OBJECT
public:
explicit Form8(QWidget *parent = nullptr);
~Form8();
protected:
virtual void keyPressEvent(QKeyEvent *event) override;
virtual bool event(QEvent *event) override;
private:
Ui::Form8 *ui;
};
#endif // FORM8_H