2020-04-11 17:16:51 +00:00
|
|
|
|
= Настройка Qt Creator
|
|
|
|
|
:title-separator: {sp}|
|
|
|
|
|
:category: Linux/Программы
|
2020-04-20 20:41:13 +00:00
|
|
|
|
:tags: Linux, Qt, Qt Creator, C++,
|
2020-04-16 06:30:46 +00:00
|
|
|
|
:toc:
|
2020-04-20 20:33:51 +00:00
|
|
|
|
:icons: font
|
2020-04-16 06:30:46 +00:00
|
|
|
|
include::{l10ndir}/{lang}.adoc[]
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
2020-04-20 20:41:13 +00:00
|
|
|
|
Перед настройкой Qt Creator желательно установить пакеты для разработки
|
2020-04-13 10:18:15 +00:00
|
|
|
|
и выполнить дополнительные настройки:
|
|
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
|
----
|
|
|
|
|
sudo apt-get install git ninja-build cmake uncrustify dos2unix doxygen
|
|
|
|
|
sudo apt-get install clazy clang-tidy build-essential qt5-default
|
|
|
|
|
git clone https://git.246060.ru/f1x1t/uncrustify-config ~/.config/uncrustify
|
|
|
|
|
----
|
|
|
|
|
|
2020-04-21 03:42:52 +00:00
|
|
|
|
<<<
|
2020-04-16 06:50:22 +00:00
|
|
|
|
|
2020-04-11 17:16:51 +00:00
|
|
|
|
== Плагины
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:04:39 +00:00
|
|
|
|
.menu:Справка[О модулях] (часть 1)
|
2020-04-16 12:50:41 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator21.png[qtcreator21,pdfwidth=70%,scaledwidth=90%,align="center"]
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
2020-04-11 18:20:55 +00:00
|
|
|
|
{empty} +
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:10:35 +00:00
|
|
|
|
.menu:Справка[О модулях] (часть 2)
|
2020-04-16 12:50:41 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator22.png[qtcreator22,pdfwidth=70%,scaledwidth=90%,align="center"]
|
2020-04-11 19:43:14 +00:00
|
|
|
|
|
2020-04-13 10:22:56 +00:00
|
|
|
|
{empty} +
|
2020-04-16 07:01:56 +00:00
|
|
|
|
|
2020-04-16 09:47:23 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:10:35 +00:00
|
|
|
|
.menu:Справка[О модулях] (часть 3)
|
2020-04-16 12:50:41 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator23.png[qtcreator23,pdfwidth=70%,scaledwidth=90%,align="center"]
|
2020-04-16 09:47:23 +00:00
|
|
|
|
|
|
|
|
|
{empty} +
|
|
|
|
|
|
|
|
|
|
[.text-center]
|
2020-04-20 19:10:35 +00:00
|
|
|
|
.menu:Справка[О модулях] (часть 4)
|
2020-04-16 12:50:41 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator24.png[qtcreator24,pdfwidth=70%,scaledwidth=90%,align="center"]
|
2020-04-16 09:47:23 +00:00
|
|
|
|
|
|
|
|
|
{empty} +
|
|
|
|
|
|
2020-04-11 19:43:14 +00:00
|
|
|
|
== Комплекты
|
|
|
|
|
|
|
|
|
|
[.text-center]
|
2020-04-20 19:10:35 +00:00
|
|
|
|
.menu:Инструменты[Параметры > Комплекты > Комплекты]
|
2020-04-11 19:43:14 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator34.png[qtcreator34,pdfwidth=80%,scaledwidth=80%,align="center"]
|
|
|
|
|
|
|
|
|
|
{empty} +
|
|
|
|
|
|
|
|
|
|
[.text-center]
|
2020-04-20 19:10:35 +00:00
|
|
|
|
.menu:Инструменты[Параметры > Комплекты > Комплекты > Генератор CMake > Изменить]
|
2020-04-11 19:43:14 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator35.png[qtcreator35,align="center"]
|
2020-04-11 17:44:28 +00:00
|
|
|
|
|
2020-04-13 10:22:56 +00:00
|
|
|
|
{empty} +
|
2020-04-16 07:01:56 +00:00
|
|
|
|
|
2020-04-11 17:44:28 +00:00
|
|
|
|
<<<
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
|
|
|
|
== Среда
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:10:35 +00:00
|
|
|
|
.menu:Инструменты[Параметры > Среда > Система]
|
2020-04-11 18:48:55 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator41.png[qtcreator41,pdfwidth=80%,scaledwidth=80%,align="center"]
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
2020-04-11 18:20:55 +00:00
|
|
|
|
{empty} +
|
|
|
|
|
|
2020-04-11 17:16:51 +00:00
|
|
|
|
== Редактор
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:10:35 +00:00
|
|
|
|
.menu:Инструменты[Параметры > Текстовый редактор > Поведение]
|
2020-04-11 18:48:55 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator42.png[qtcreator42,pdfwidth=80%,scaledwidth=80%,align="center"]
|
2020-04-11 17:49:41 +00:00
|
|
|
|
|
2020-04-13 10:22:56 +00:00
|
|
|
|
{empty} +
|
2020-04-16 07:01:56 +00:00
|
|
|
|
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
|
|
|
|
== C++
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:12:56 +00:00
|
|
|
|
.menu:Инструменты[Параметры > С++ > Именование файлов]
|
2020-04-16 07:12:02 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator51.png[qtcreator51,pdfwidth=78%,scaledwidth=78%,align="center"]
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
2020-04-11 18:20:55 +00:00
|
|
|
|
{empty} +
|
|
|
|
|
|
2020-04-11 17:16:51 +00:00
|
|
|
|
== Стилизатор
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:12:56 +00:00
|
|
|
|
.menu:Инструменты[Параметры > Стилизатор > Uncrustify]
|
2020-04-16 07:12:02 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator55.png[qtcreator55,pdfwidth=78%,scaledwidth=78%,align="center"]
|
2020-04-11 17:49:41 +00:00
|
|
|
|
|
2020-04-13 10:22:56 +00:00
|
|
|
|
{empty} +
|
2020-04-16 07:01:56 +00:00
|
|
|
|
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
|
|
|
|
== Сборка и запуск
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:12:56 +00:00
|
|
|
|
.menu:Инструменты[Параметры > Сборка и запуск > Основное]
|
2020-04-16 12:50:41 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator61.png[qtcreator61,pdfwidth=78%,scaledwidth=80%,align="center"]
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
2020-04-11 18:20:55 +00:00
|
|
|
|
{empty} +
|
|
|
|
|
|
2020-04-20 19:19:11 +00:00
|
|
|
|
<<<
|
|
|
|
|
|
2020-04-11 17:16:51 +00:00
|
|
|
|
== To-Do
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:12:56 +00:00
|
|
|
|
.menu:Инструменты[Параметры > To-Do]
|
2020-04-16 12:50:41 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator67.png[qtcreator67,pdfwidth=78%,scaledwidth=80%,align="center"]
|
2020-04-11 17:49:41 +00:00
|
|
|
|
|
2020-04-13 10:22:56 +00:00
|
|
|
|
{empty} +
|
2020-04-16 07:01:56 +00:00
|
|
|
|
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
|
|
|
|
== Импорт проекта на CMake
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:12:56 +00:00
|
|
|
|
.menu:Импорт проекта[Настроить проект]
|
2020-04-11 18:48:55 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator74.png[qtcreator74,pdfwidth=80%,scaledwidth=80%,align="center"]
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|
2020-04-11 18:20:55 +00:00
|
|
|
|
{empty} +
|
|
|
|
|
|
2020-04-11 17:16:51 +00:00
|
|
|
|
== Сборка
|
|
|
|
|
|
2020-04-11 17:59:22 +00:00
|
|
|
|
[.text-center]
|
2020-04-20 19:12:56 +00:00
|
|
|
|
.menu:Проект[Настройки сборки]
|
2020-04-11 18:48:55 +00:00
|
|
|
|
image::qtcreator-setup/qtcreator81.png[qtcreator81,pdfwidth=80%,scaledwidth=80%,align="center"]
|
2020-04-11 17:16:51 +00:00
|
|
|
|
|