Configure Qt VS Tools

To compile the KINGSTAR Qt sample, we need to configure Qt VS Tools to use the Qt components and the modules we installed.

  1. Start Visual Studio 2019. On the Extensions menu, click Qt VS Tools > Qt Options.
  2. In the Qt Options dialog box, on the Qt Versions tab, click Add.
  3. In the Add New Qt Version dialog box, click ... to browse to the MSVC 2017 64-bit component we downloaded. The default path of this component is at C:\Qt\Qt5.12.9\5.12.9\msvc2017_64. After you choose the path, click OK.
  4. NOTE:  If the component has not been found in the specified folder, Qt will remind you the path is wrong.

  5. The path is added to the Qt Versions tab. Click OK.
  6. On the Extensions menu, click Qt VS Tools > Qt Project Settings.
  7. In the Qt Project Settings dialog box, on the Properties tab, click the Version list and select msvc2017_64.
  8. On the Qt Modules tab, select the Core, GUI, and Widgets check boxes and click OK.