qFlags with iterator