FaceAccess/Linguist/keyboard/LineEditWithKeyboard.h
2024-07-11 11:27:12 +08:00

29 lines
513 B
C++

#ifndef LINEDIT_WITH_KEYBOARD
#define LINEDIT_WITH_KEYBOARD
#include <QWidget>
#include <QLineEdit>
#include "keyboard.h"
class LineEditWithKeyboard : public QLineEdit
{
Q_OBJECT
public:
LineEditWithKeyboard(QWidget *parent = nullptr);
protected:
void mousePressEvent(QMouseEvent *event);
signals:
void signalMousePressed();
public slots:
void slotWordChoose(QString word);
private:
void keyPressEvent(QKeyEvent* event);
keyboard* m_keyboard;
};
#endif // LINEDIT_WITH_KEYBOARD