title: Change Screen Resolution
body: <p>I've got a problem. I need to change screen resolution inside of my QT Project(like in some games for example). I have heard that I need to use Windows API, like following:</p>
  
  <pre><code>DEVMODE devmode;
  devmode.dmPelsWidth = 1024;
  devmode.dmPelsHeight = 768;
  devmode.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
  devmode.dmSize = sizeof(DEVMODE);
  
  long result = ChangeDisplaySettings(&amp;devmode, 0);
  qDebug() &lt;&lt; "RESULT OF CHANGE DISPLAY :"&lt;&lt; result;
  </code></pre>
  
  <p>But Qt says: "'DEVMODE': undeclared identifier". How can I fix it? Maybe I need to include some libraries?</p>