def METHOD_NAME(list):
    for i in range(list.count()):
        if filter_txt != "":
            txt = list.item(i).text()
            list.item(i).setHidden(filter_txt not in txt)
        else:
            list.item(i).setHidden(False)