其实很简单,就是在setinput函数的参数中,需要分行的地方加入“\n”, 就可以分行了 例如: textActor->setinput("nihao\nnihao"); 显示出来就是 nihao nihao