只需要修改QPushButton部件的text属性就可以实现换行 在需要换行的地方加一个“\n” 例如 Qstring str("aaa\nbbb"); ui->button->setText(str);