avoid intermediate list and cleaner way to convert to QSet

Authored by jjazeix on Apr 18 2020, 10:31 AM.