Replacing certain characters in a QString
I would start by separating the data from the logic:

std::vector&lt;std::pair&lt;QString, QString&gt;&gt; replacements { 
    { "/", "-" },
    { "|", ""  },
    // ...
    { "ï", "i" }
};

for ( auto const &amp;r : replacements) { 
    str.replace(r.first, r.second);
}


I'm not sure the comments about the groups of letters being replaced really add a lot though.

Then I'd at least consider moving the data out of the program itself, and into a data file the program uses, so the replacements you do can be adjusted without re-compiling the code (this is the sort of thing that frequently seems to need a fair amount of "tweaking", since there's no one way of doing it that's obviously correct and the other ways are wrong).