bool CMappedComboBox::eventFilter(QObject *obj, QEvent *e){ if(obj==&list) { if(e->type()==QEvent::MouseButtonPress) { list.setVisible(false); e->accept(); return true; } else return false; ...