Use Pino's tip
Creating a QUrl using a string then using path() to get the string back doesn't make sense.