title: C++ compile problems with Qt for Visual Studio 2017
body: <p>I have installed Qt Creator with the <em>msvc2017_64</em> binary. I also installed the Qt add-in for VS2017. I can create a QtGuiApplication without any problems, but when i try to compile it, many errors appear. I listed them <a href="https://pastebin.com/GPkA08pj" rel="nofollow noreferrer">here</a>, on pastebin, because I cannot add this many characters to Stackoverflow. I'm sorry for that.</p>
  
  <p>Do I need any essential packages for this? I installed C++ for VS2017 ofc. I also included the QtPath in the Qt VS Tools menu.</p>
  
  <p>I did not edit the files since project creation and compiling fails due to errors.</p>
  
  <hr>
  
  <p><strong>EDIT:</strong> This problem is solved <a href="https://stackoverflow.com/questions/42777424/visual-studio-2017-errors-on-standard-headers">here</a>. But not only the Errors form Pastebin exist, also the one following in the <strong>QtGuiApplication.h</strong></p>
  
  <hr>
  
  <p><strong>QtGuiApplication.h: (Errors marked as comments)</strong></p>
  
  <pre><code>#pragma once
  
  #include &lt;QtWidgets/QMainWindow&gt;
  #include "ui_QtGuiApplication1.h" //This could not be found
  
  class QtGuiApplication1 : public QMainWindow
  {
      Q_OBJECT
  
  public:
      QtGuiApplication1(QWidget *parent = Q_NULLPTR);
  
  private:
      Ui::QtGuiApplication1Class ui; //Ui namespace does not exist
  };
  </code></pre>
  
  <p><strong>QtApplication.cpp:</strong></p>
  
  <pre><code>#include "stdafx.h"
  #include "QtGuiApplication1.h"
  
  QtGuiApplication1::QtGuiApplication1(QWidget *parent)
      : QMainWindow(parent)
  {
      ui.setupUi(this);
  }
  </code></pre>
  
  <p><strong>main.cpp:</strong></p>
  
  <pre><code>#include "stdafx.h"
  #include "QtGuiApplication1.h"
  #include &lt;QtWidgets/QApplication&gt;
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      QtGuiApplication1 w;
      w.show();
      return a.exec();
  }
  </code></pre>