Qt5中QMessageBox::warning()的第一个参数写this时出错

StandardButton QMessageBox::warning ( QWidget * parent, const QString & title, const QString & text,StandardButtons buttons = Ok, StandardButton defaultButton

将第一个参数设为NULL,就正确了

posted @ 2016-04-13 12:49  独孤流  阅读(1175)  评论(0编辑  收藏  举报