QT6.3常量中有换行符
int ret2=QMessageBox::information(this,QString::fromLocal8Bit("提示"),QString::fromLocal8Bit(("确认启动设备吗?")),QMessageBox::Yes,QMessageBox::No);
确保显示正常,建议每次使用时,中文的前后加一个空格
QMessageBox::information(this," 提示ok ",btn_start->text()+"okkkkkkkkkkkkkkkkkkkkkkkkkkkkkk");