The statement should be
QApplication::setOverrideCursor(Qt::WaitCursor);