You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
446 B

#ifndef CQLINEEDIT_H
#define CQLINEEDIT_H
#include <QLineEdit>
class CQLineEdit : public QLineEdit
{
Q_OBJECT
public:
explicit CQLineEdit(QWidget *parent = 0);
void focusInEvent(QFocusEvent *event); //覆盖这两个函数
void focusOutEvent(QFocusEvent *event);
signals:
void GetFocus(); //获得焦点信号
void LostFocus(const QString &); //失去焦点信号
};
#endif // CQLINEEDIT_H