def get_all_items(combo_box):
    """
    Gets all the items in a combobox as a list. Will raise an IndexError if there are not

    items in the combobox
    :param combo_box: your QComboBox
    :return: items of the QComboBox
    """
    items = []
    for item in [combo_box.itemText(i) for i in
                 range(combo_box.count())]:
        if item is not None:
            items.append(item)

    return items