Skip to content

Qt Installation and Configuration

Chianugoogidi edited this page Jul 12, 2020 · 11 revisions

Downloading the Qt Binaries


  • Go to qt.io/download and click on Go Open Source

    alt text
  • Scroll down towards the bottom of the page and click on Download the Qt Online Installer

    alt text
  • On the next page, click the Download button. This should download the Qt binaries.

  • Run the installed file (in Windows, this will be a .exe file). You should see a page like this:

    alt text

Installing the Qt Framework


  • Log into your Qt account or # if you don't have one. Click Next to continue.

  • Accept the obligations of using open source Qt, then check the option acknowledging that you are using Qt as an individual person. Click Next twice.

    alt text
  • Choose whether to send usage statistics to the Qt company. Then click Next.

    alt text
  • Choose the installation folder for the Qt Framework, then check the option to associate common files with Qt Creator. Click Next.

    alt text
  • This project was built using Qt 5.13.3, so it will work for higher versions as well. For the purpose of this tutorial, select the MSVC 2017 64-bit component under Qt 5.13.3. This component will allow you to package the app for 64-bit computers running the Windows Operating System using Microsoft Visual C++ 2017. This app was mostly designed for the Windows OS but, using the Qt Framework the app can be packaged to run on other operating systems. If you wanted a version of the app to run on Android, for example, you would select one of the Android components.

    alt text
  • Click Next until you get to the final installation page, then click Install. This will install the Qt Framework along with the Qt Creator IDE.

  • Finish the installation by launching Qt Creator. You should see something like this:

    Qt Creator Home page

Adding Kits


  • Install and configure Visual Studio Community 2017. This will allow you to get the Microsoft Visual C++ compiler, which will allow you to compile the application for 64-bit Windows systems.

  • In Qt Creator, you can view and modify Kits from Tool > Options > Kits. If not already selected, select the Microsoft Visual C++ Compiler 15.9.28307.1177 (x86_amd64) option for both C and C++ compiler. Click OK.

    Qt Creator Kits configuration

Downloading the Source Code


  • Download and Install the GitHub desktop application

  • Go to File > Clone repository > URL. Copy and paste the URL of this repository.

    GitHub Desktop Clone Repository
  • Click on Initialize Git LFS when prompted.

  • You can now open the application in Qt Creator from File > Open File or Project.... Select the SprayerBOT.pro file.

Configuring the Project

  • The first time you open the project on your machine, you will be prompted to configure it with a kit, which you have already done in previous steps. Here, just click on the Configure Project button.

    Configure project
  • You can now run the application using the play button or Ctrl+R

NOTE: To be able to play the videos install the K-Lite Codec Pack. There is no special configuration for this.