That just worked by accident due to the implicit int > QChar > QString conversion in Qt 5. Qt 6 makes that explicit though, and thus fails to compile.