经过查询QT Assistant发现: void QWidget::setShown ( bool shown ) [slot] Use setVisible(shown) instead. 显示setVisible与setshown功能一样,替代了setShown.