Skip to content
Christoph Rösmann edited this page Mar 17, 2020 · 1 revision

QtCreator

QtCreator has been tested for Version 4.2.1+.

Import Package

  1. Start the Open File dialog and select the top-level CMakeLists.txt in the src-folder of the project.
  2. Select build folders for different configurations, e.g. build/default, build/release, build/debug, ...

Coding Styles and Code Formatting

  • This project uses Google's Coding Style with some modifications.
  • Coding style compliance is verified by gitlab-ci, please check the build log (false positives might occur)
  • QtCreator can be configured to enforce our coding style whenever a source or header file is saved:
  • Install the clang-format binary: sudo apt install clang-format-3.8 (you might choose a newer version if available)
  • Install the Beautifier Plugin (Help - About Plugins... - C++/Beautifier) and restart QtCreator
  • Go to Tools - Options... - Beautifier and enable auto format on file save
  • Select Tool: ClangFormat and restrict to files contained in the current project.
  • Go to Tab Clang Format and define the binary according to the installed clang-format version: /usr/bin/clang-format-3.8
  • Under Options choose File. Consequently, QtCreator will parse the project folder and will automatically find the .clang_format file containing the configuration.

Clone this wiki locally