title: Qt - change cursor to hourglass and disable cursor
body: <p>Currently I am working on a Qt program. To prevent the user from interacting with the application when a long task is running, I tried <a href="http://doc.qt.io/qt-4.8/qapplication.html#setOverrideCursor" rel="nofollow noreferrer">overriding the cursor</a> by calling</p>
  
  <pre><code>QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
  </code></pre>
  
  <p>However, mouse click events aren't disabled. </p>
  
  <p>Is there any way to disable mouse click events without disabling all widgets of GUI?</p>