title: How to solve the "no Qt platform plugin could be initialized" problem?
body: <p>I'm trying to run a simple template in <em>release</em> mode on Visual Studio with the Qt extension. So far I've always been running projects in debug mode (never had trouble). Recently, I started with a browser application using <code>webengine</code> its widgets, but it's very slow on debug mode, so. I wanted to make sure it's possible to run with higher performance (on release mode), before continuing.</p>
  <p>I was surprised, because the application throws 4 error message pop-ups after each other after trying to run it:</p>
  <ul>
  <li>
  <blockquote>
  <p>The procedure entry point ?endl@QTextStreamFunctions@@YAAEAVQTextStream@@AEAV2@@Z could not be located in the dynamic link library C:\Qt\5.14.1\msvc2017_64\bin\Qt5WebChannel.dll.</p>
  </blockquote>
  </li>
  <li>
  <blockquote>
  <p>The procedure entry point ?argToQString@QQtPrivate...QString...QStringView... could not be located in the dynamic link library C:\Qt\5.14.1\msvc2017_64\bin\Qt5WebChannel.dll.</p>
  </blockquote>
  </li>
  <li>
  <blockquote>
  <p>Two more similar ones for <em>QDebug</em> and <em>QRhiDepthStencilClearValue</em>.</p>
  </blockquote>
  </li>
  </ul>
  <p>So instead, I tried to compile a simple project (the direct QtWidgetsApplication template) and it gave me this:</p>
  <blockquote>
  <p><a href="https://stackoverflow.com/questions/57759100/no-qt-platform-plugin-could-be-initialized-error-pyqt5">This application failed to start because no Qt Platform plugin could be initialized. Reinstalling the application may fix this problem.</a></p>
  </blockquote>
  <p>I've been looking for a solution for quite some time now, but I didn't find a clear answer.</p>
  <p>My directory: <code>C:\Qt\5.14.1\msvc2017_64</code></p>
  <p>My template code:</p>
  <pre class="lang-cpp prettyprint-override"><code>#include &quot;QtWidgetsApplication2.h&quot;
  #include &lt;QtWidgets/QApplication&gt;
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      QtWidgetsApplication2 w;
      w.show();
      return a.exec();
  }
  </code></pre>
  <pre class="lang-cpp prettyprint-override"><code>#pragma once
  
  #include &lt;QtWidgets/QMainWindow&gt;
  #include &quot;ui_QtWidgetsApplication2.h&quot;
  
  class QtWidgetsApplication2 : public QMainWindow
  {
      Q_OBJECT
  
  public:
      QtWidgetsApplication2(QWidget *parent = Q_NULLPTR);
  
  private:
      Ui::QtWidgetsApplication2Class ui;
  };
  </code></pre>
  <pre class="lang-cpp prettyprint-override"><code>#include &quot;QtWidgetsApplication2.h&quot;
  
  QtWidgetsApplication2::QtWidgetsApplication2(QWidget *parent)
      : QMainWindow(parent)
  {
      ui.setupUi(this);
  }
  </code></pre>
  <p>I have no clue of how to fix this problem. Could you please help me out? Thanks in advance!</p>