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); }

}

};

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2021-11-13
猜你喜欢
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
相关资源
相似解决方案