class MyLineEdit :
public QLineEdit {
Q_OBJECT
public: MyLineEdit(QWidget * parent = 0) : QLineEdit(parent) {}
~MyLineEdit(){}
protected: virtual void focusOutEvent(QFocusEvent * e) {
if (e->reason() == Qt::ActiveWindowFocusReason)
{
return; }
else {
QLineEdit::focusOutEvent(e); }
}
};