Updated QtCreator configuration guide

This commit is contained in:
Alexandre Laurent
2026-08-03 19:27:02 +02:00
parent 5a1dda5d42
commit 511d055cc1
6 changed files with 7 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -61,7 +61,7 @@ Importing the project
| Arguments | See :ref:`doc_introduction_to_the_buildsystem` for a full list of arguments. | | Arguments | See :ref:`doc_introduction_to_the_buildsystem` for a full list of arguments. |
+-----------+------------------------------------------------------------------------------+ +-----------+------------------------------------------------------------------------------+
.. figure:: img/qtcreator-set-scons-command.png .. figure:: img/qtcreator-set-scons-command.webp
:figclass: figure-w480 :figclass: figure-w480
:align: center :align: center
@@ -92,21 +92,16 @@ Code style configuration
------------------------ ------------------------
Developers must follow the project's `code style <https://contributing.godotengine.org/en/latest/engine/guidelines/code_style.html>`__ Developers must follow the project's `code style <https://contributing.godotengine.org/en/latest/engine/guidelines/code_style.html>`__
and the IDE should help them follow it. By default, Qt Creator uses spaces and the IDE should help them follow it.
for indentation which doesn't match the Godot code style guidelines. You can
change this behavior by changing the **Code Style** in **Tools > Options > C++**.
.. figure:: img/qtcreator-options-cpp.png - Open **Preferences > C++ > Code Style**.
- Set the **Formatting mode** to **Full formatting** to instruct Qt Creator to use the ``.clang-format`` file supplied in Godot's root folder:
.. figure:: img/qtcreator-options-cpp.webp
:figclass: figure-w480 :figclass: figure-w480
:align: center :align: center
Click on **Edit** to change the current settings, then click on - Specify when you want ``clang-format`` to run (either while typing or when you saving the file). It is recommended to enable formatting on save at least.
**Copy Built-in Code Style** button to set a new code style. Set a name for it
(e.g. Godot) and change the Tab policy to be **Tabs Only**.
.. figure:: img/qtcreator-edit-codestyle.png
:figclass: figure-w480
:align: center
If you run into any issues, ask for help in one of If you run into any issues, ask for help in one of
`Godot's community channels <https://godotengine.org/community>`__. `Godot's community channels <https://godotengine.org/community>`__.