Extends QComboBox to add extra functionality.
Set the selected item to the first one having the given text.
Set the selected item to the first one having the given value.
If items were given as a list of strings, then return the currently selected text. If items were given as a dict, then return the value corresponding to the currently selected key. If the combo list is empty, return None.