Do try to create the successor from the QComboBox class. Such as:
Qt Code:
  1. class ComboBoxModify : public QComboBox
  2. {
  3. Q_OBJECT
  4. public:
  5. ComboBoxModify(QWidget * pParent = 0)
  6. : QComboBox(pParent) { ; };
  7. public slots:
  8. void setCurrentIndex ( int index )
  9. {
  10. QComboBox::setCurrentIndex( index );
  11. emit QComboBox::activated ( index );
  12. };
  13. };
To copy to clipboard, switch view to plain text mode