Remove ToString which is implemented using boost::lexical_cast. Use QString::number(), BoolToString(), sprintf, etc. instead.