well meh it should work and there's no errors in the log I can see except
And I couldn't get the replace('_', '-') to compile, it complained that QChar is a deleted function?