![using qt creator using qt creator](https://doc.qt.io/qt-5/images/configuregamepadbuttons-example.png)
Here it’s also possible to set a version control system to use for the project, but feel free to not set any for now.Ĭlicking on the button Finish will create the project and generate 3 C++ files ( main.cpp, MainWindow.h and MainWindow.cpp) and a project file used by Qt Creator and qmake (the Qt building tool) to build the project. In the final step of the project creation you will get a summary of what defined in the previous steps. We won’t need it because we will be coding the GUI from scratch. The form file is used by the integrated visual interface editor Qt Designer. You can leave everything as it is, but make sure to uncheck the Generate form field. The fourth step is defining the details of the initial main window class that will be generated by the template. I am developing on Linux so I am going for the kit Desktop Qt 5.7.0 GCC 64bit, but you might see different kits if developing on/for different platforms.
![using qt creator using qt creator](https://doc.qt.io/qtcreator/images/qtcreator-installed-plugins.png)
Qt Creator kits are groups of settings used for building and running projects for different platforms. The third step is selecting the kit(s) for building your application. For my project I decided to use “BasicApplication” for the name, but obviously you can use anything you want. The second step is selecting a name for your project and a location where to save it. The first step is to create a new project in Qt Creator from one of the available templates:įor a graphical application you want to select the Qt Widgets Application template. Using other IDEs is possible, but I don’t recommend it and for this tutorial I will use Qt Creator.
#Using qt creator full#
The main reason is that Qt Creator is the official Qt IDE and it offers full integration with the framework and all the other development tools. When working with Qt, especially when developing cross-platform software, it’s recommended to use Qt Creator as IDE. Nothing too fancy, but these are the basic elements of most desktop applications and you can use this code as starting template for your projects. This tutorial will guide you through the creation of a basic window with a menu bar, a menu and a status bar. If you need to create an application with a GUI in C++ you should definitely consider Qt for it. Qt is a cross-platform framework and a collection of tools for creating applications which can run on desktop, embedded and mobile operating systems. Full project and source code are provided.
#Using qt creator how to#
This tutorial is an introduction to Qt programming and will teach you how to create an application with Qt and C++.