This works but it's cleaner to use a QStringList and then call ```list.join(",")```.