title: How to use QCursor::pos() without using QApplication?
body: <p>I'm writing a project in Qt Creator, and if I write</p>
  
  <pre><code>QPoint cursorPos=QCursor::pos();
  </code></pre>
  
  <p>then cursorPos={-2147483648,-2147483648} which is obviously wrong. However, if I write</p>
  
  <pre><code>QApplication *application=new QApplication(argc,argv);
  QPoint cursorPos=QCursor::pos();
  </code></pre>
  
  <p>then cursorPos is the correct mouse position. Is there any way I can get QCursor::pos() to work without QApplication? Thanks. :D</p>