#ifndef PASSWORDDIALOG_H #define PASSWORDDIALOG_H #include #include #include #include #include class PasswordDialog : public QDialog { Q_OBJECT public: explicit PasswordDialog(QWidget *parent = nullptr); QString getPassword() const; private slots: void onConfirmButtonClicked(); private: QLineEdit *passwordLineEdit; QPushButton *confirmButton; // bool eventFilter(QObject *obj, QEvent *event); }; #endif // PASSWORDDIALOG_H