C++ (Qt)connect( colorPicker, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( changed() ) );connect( comboBox, SIGNAL( currentIndexChanged( int ), this, SLOT( changed() ) );
C++ (Qt)struct DataRec { enum dataType { data_int = 1, data_float = 2, ... }; enum ctlType { ctl_LineEdit = 1, ctl_Combo = 2, ... }; dataType mDataType; ctlType mCtlType; union { void * voidPtr; int * intPtr; float * floatPtr; ... };}; QHash <QWidget *, DataRec> theControlList;