I've looked in multiple places and cannot seem to find anything to work for my purpose. I have this QComboBox that constantly changes (And could change after the program is completely finished). To make it easier I made an Enum list for switch statements
public:
enum Race{
Race1,
Race2,
ect
}
The combo is filled with the same elements. However, I want to make it even easier. So instead of changing the Combobox and changing the enum list, is there a way where all i have to do is add a new "race" to the enum list, that it will populate the combobox, so all i would have to do is a switch statement to handle new race?
Additional info: I'm willing to put the enum list into a qstringlist. I have Q_ENUMS (Race) set