The usual way to do this is by subclassing QWidget (or QFrame ).
class CustomWidget: public QWidget { Q_OBJECT CustomWidget(QWidget *parent) : QWidget(parent) { combo = new QComboBox(...); list = new QListWidget(...);
Manage all the interactions between the list and combos in this custom widget (by connecting the appropriate signals to the corresponding slots, possibly to define your own slots).
Then you expose your user view / widget API through the selected signals and slots, possibly simulating them in a list and / or combo.
In the Address Book tutorial , you will get to know all of this, including creating a custom widget and defining signals and slots for it.
source share