Make int to QChar conversion explicit
Otherwise it fails with "error: conversion from ‘int’ to ‘QChar’ is ambiguous" when building against Qt6.
Otherwise it fails with "error: conversion from ‘int’ to ‘QChar’ is ambiguous" when building against Qt6.