Could be simplified into:
```
foreach(const QString& studyUID, studiesUIDs)
```