QApplication::setOverrideCursor(Qt::WaitCursor);//程序段QApplication::restoreOverrideCursor();注意,程序段一般为需要执行事件较长的语句组成,比如读写文件