@JKSH said in How do I append characters of a QString to another QString in a neat way?:
Anyway, you could simplify the whole thing:
QDateTime now = QDateTime::currentDateTime();
QString yyyy = now.toString("yyyy");
QString MM = now.toString("MM");
QString dd = now.toString("dd");
QString HH = now.toString("HH");
QString mm = now.toString("mm");
QString ss = now.toString("ss");
This is ideally the best general solution, IMHO