Use QComboBox::setView in conjunction with QItemDelegate.
More info would make the answer more clear.