问题 Using Qt 5.9 on Linux, I have a QComboBox with several labels. qc = new QComboBox; qc->addItem(tr("Red")); qc->addItem(tr("Green")); qc->addItem(tr("Blue")); Lets say a user activates the QComboBox and the 3 color labels are shown in the drop down list. The user then selects the 1st item (red). What I want to do is have the QComboBox display a different value than what was selected. I.e., if red is selected, then a number is shown, possibly 1 for the first item (or it could be an R for Red),