报错:tr was not declared in this scope

报错代码如下:

label->setText(tr("您好,Qt5.5.0!"));

修改为:

 label->setText(QObject::tr("您好,Qt5.5.0!"));

 

posted @ 2015-08-22 09:57  yshy  阅读(760)  评论(0编辑  收藏  举报