Fix conversion warning in qt example