\n is no trick and works fine with QString. You must have done something wrong. Can we see the code and the error message you get?