#include #include "VComboBox.h" VComboBox::VComboBox() { } void VComboBox::keyPressEvent(QKeyEvent * event) { QComboBox::keyPressEvent(event); if ( event->key() == Qt::Key_Return ) { emit editingFinished(currentText()); event->accept(); } else { event->ignore(); } }