mafulechka
Aug. 1, 2019, 2:07 p.m.

Updating CMake project support in Qt Creator

Over the past few weeks, developers have been working on improving CMake support in Qt Creator, Qt Company would like to highlight some of the new features.


Fileapi support

The CMake project has announced a new IDE integration mechanism version 3.14 called fileapi . It provides about the same level of information as the previous recommended mechanism (server mode), but does not require the lengthy cmake process. This makes the new approach use fewer resources while being more robust to users running cmake on the command line.

"Fileapi" is now supported in Qt Creator (master branch).

CMake support in Locator

The developer allowed some time to run the assembly of CMake targets through the Locator. Just press Ctrl-K to focus the locator and then type cm <target> to collect that target.
In upstream, this got a little extension: cmo input will open the target definition in the editor. This works best when your CMake binary supports fileapi: then it will take you to the line where the target is defined. Older CMake binaries will simply open the CMakeLists.txt file in the target's source directory, as there is no line number information.

Opening targets via the context menu

The same information used by the cmo locator is used to populate the Open... menu in the target's context menu. This allows you to jump directly to the line corresponding to the target definition.

Note that this feature was available for one particular version of CMake with server mode support, but the required support in CMake has been removed and only returned in fileapi again.

BlinCT
  • Aug. 1, 2019, 4:35 p.m.

Интересно, когда они впилят уже функционал который даст возможность создавать файлы для проекта и автоматом их добавлять в проектник. А то пока это руками делается это для многих не очень удобно.

Comments

Only authorized users can post comments.
Please, Log in or Sign up
  • Last comments
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
  • A
    Oct. 19, 2024, 5:19 p.m.
    Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html