this process of splitting then trimming then replacing then converting seems like it could be cleaned up to take less steps. For example, if you're really concerned that these strings will have spaces in between the commas, then you could use the split/regex version to eliminate white space: something like...
```
list = str.split(QRegExp("\\s*,\\s*")); // I'm not sure on the regex pattern, but something like that
```