What happens if text is empty?  Also you can just use QString(text.at(0)) - the default is to create a string of length 1.