It would be nice if QString::replace(const QRegExp &rx, const QString &after) supported the following escape sequences in the after string, to convert the replacement patters to upper- and lowercase, and combinations of these. For example:
\u Convert first character of replacement pattern to uppercase.
\U Convert entire replacement pattern to uppercase.
\l Convert first character of replacement pattern to lowercase.
\L Convert entire replacement pattern to lowercase.
Then in the below example, "This" and "that" would be converted to uppercase:
QString line1 = "This & that";
1"); // This would convert "This" and "that" to uppercase "THIS" and "THAT"
DECISION: Good idea, but this could break existing applications. We will consider it for Qt 5.