title: Cannot run Qt example in Qt creator: The program has unexpectedly finished
body: <p>Recently I tried to upgrade Qt to 5.8.0 on Windows 7 32bit from Qt5.6.2 MSVC 2013, and I saw strange issues.</p>
  
  <p>I downloaded and installed Visual Studio 2015 from this link: <a href="https://www.visualstudio.com/downloads/" rel="nofollow noreferrer">https://www.visualstudio.com/downloads/</a></p>
  
  <p>After I installed Qt 5.8.0 MSVC 2015 version, Qt Creator 4.2.1 can be launched. From the welcome page, I selected the example named: "Address Book Example". And then after clicking "Configure" project, the project is listed in Qt Creator.</p>
  
  <p>Now I tried to build the project, which was successful. But when I tried to run the project, I got the following error messages:</p>
  
  <pre><code>Starting C:\Qt\Examples\Qt-5.8\widgets\itemviews\build-addressbook-Desktop_Qt_5_8_0_MSVC2015_32bit-Debug\debug\addressbook.exe...
  The program has unexpectedly finished.
  C:\Qt\Examples\Qt-5.8\widgets\itemviews\build-addressbook-Desktop_Qt_5_8_0_MSVC2015_32bit-Debug\debug\addressbook.exe crashed.
  </code></pre>
  
  <p>I didn't see this kind of error before when I was using Qt5.6.2 with MSVC 2013. I also tried the following things:</p>
  
  <ul>
  <li>Reinstall Qt5.8.0 MSVC 2015 using offline installer</li>
  <li>Reinstall Qt5.7.1 MSVC 2015 using offline installer</li>
  <li>Reinstall Qt5.6.2 MSVC 2015 using offline installer</li>
  <li>Reinstall Qt5.8.0 using online installer, in which I chose MSVC 2013 and MSVC 2015</li>
  </ul>
  
  <p>I still kept getting the same error messages.</p>
  
  <p>When I went to the debug folder, double clicked the exe file, it said some Qt dlls were missing. I then manually copied to the debug folder, then the exe can be run with no problem.</p>
  
  <p>Now I want to run app from inside Qt Creator, but not sure what is the issue with Qt Creator 4.2.1. I researched in Google for a few hours, but still cannot find out the reason why Qt Creator cannot run projects even it's own Example projects. (same errors for my own projects)</p>
  
  <p>I feel it must be something to do with Qt creator environment/settings. Anyone has any ideas about this problem?</p>
  
  <p><strong>Update 1:</strong></p>
  
  <p>I tried to use MinGW with Qt Creator, the addressbook example can be run correctly. Looks like it's related to MSVC 2015. I need MSVC 2015, because all other environments don't support webenginewidgets, and I got:</p>
  
  <p><code>:-1: error: Unknown module(s) in QT: webenginewidgets</code></p>
  
  <p>Not sure if this is a bug in Qt or Qt creator.</p>
  
  <p><strong>Update 2:</strong></p>
  
  <p>In my Qt Creator, I saw warning icons for MSVC 2013 and MSVC 2015 compilers, please see the screenshots below:
  <a href="https://i.stack.imgur.com/1U6EU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1U6EU.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/ldKPF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ldKPF.png" alt="enter image description here"></a></p>