Do name_list optimisations also for Qt.