Qt Creator with non qt projects

Qt Creator is a great IDE for C/C++ development and even if it has all the powerful features we expect in a IDE it is light and performance well.

When I need to write small snippets of code I usually use a text editor like Sublime Text, Kate or any other that has at least syntax highlighting cause they are much lighter than IDEs but as soon as the project has more than few files or I need to use libraries there are some features that I really like and aren’t easily find in text editors, per example code completion or navigation through functions definitions. So I use Qt Creator for that cases. We need to select New File or Project and then Import Existing Project.

Give a name to the project and select the path where it is located.
Select the files that belong to the project.

Qt Creator will add some files to the project: project_name.config, project_name.creator, project_name.files and project_name.includes.

project_name.includes is one of the most important files because is here where we should add the paths to libraries. In this case I added the paths to STM32 standard peripheral library from ST and also CMSIS library from ARM.

Now you can use Qt Creator to develop or debug your STM32 projects per example.

6 thoughts on “Qt Creator with non qt projects

  1. I was reviewing your QT integration with STM32. Can you blog how you setup QT to compile the STM32 programs with GCC?

  2. Hi,
    I used Qt Creator only to edit the code. To compile I use a makefile so I only need to execute make on a shell but Qt Creator also support build through makefiles.

    • Hello

      This is nice tutorial, I would like to ask after building the code Qt how can I download the code on board and see GUI that I created. Thank you very much ahead.

        • No Problem. I am using STM32F Discovery Board and the problem is that I did some settings in Qt Creator and I do not know if those settings are correct. I would be appreciated if you could make a tutorial how to set up project in Qt creator for STM32f4 Discovery board or any other boards. By the way, sorry for a late reply.

Leave a Reply

Your email address will not be published. Required fields are marked *