I don't think you need to explicitly specify QString(".  c++ should do that type conversion for you.