On this page

Qt OpenAPI

The Qt6 OpenAPI generator is a plugin to the OpenAPI generator which allows you to generate clients, servers, and documentation from OpenAPI 2.0/3.x specifications using a variety of programming languages and frameworks.

The Qt6 OpenAPI generator allows you to autogenerate Qt HTTP clients in C++ using Qt Network APIs such as QRestAccessManager.

Using the module

Installation of the following packages is necessary to use the Qt OpenAPI module:

Once you have the required installations, the Qt OpenAPI generator is ready for use within your projects. To generate client code from an OpenAPI specification using the Qt OpenAPI Generator, you should call the qt6_add_openapi_client macro inside your project's CMakeLists.txt file. See Building with CMake for details.

Building with CMake

Examples

Licenses and Attributions

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.