| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef TLOGIN_H
- #define TLOGIN_H
- #include <QDialog>
- #include "qpushbutton.h"
- class QLineEdit;
- class QLabel;
- class TLogin : public QDialog
- {
- Q_OBJECT
- public:
- explicit TLogin(QWidget *parent = nullptr);
- void on_login_clicked();
- void on_refresh_captcha_clicked(); // 刷新验证码
- protected:
- void mousePressEvent(QMouseEvent *event);
- void mouseMoveEvent(QMouseEvent *event);
- signals:
- void loginSuccessful();
- private:
- QPoint m_dragPosition;
- QPushButton *loginPushButton;
- QLineEdit *usernameEdit;
- QLineEdit *passwordEdit;
- QLineEdit *captchaEdit;
- class CaptchaLabel *captchaImage;
- QLabel *info;
-
- QString captchaId; // 存储验证码ID
-
- void getCaptcha(); // 获取验证码
- };
- #endif // TLOGIN_H
|