Getting started
To check that Qt Extension for VS Code can find your Qt installation and CMake kits, open a Qt example for building and running.
Building and running a Qt example in VS Code.
To open and run a Qt example project in VS Code:
- Install Qt Extension for VS Code.
- Open a folder that contains a Qt example (that has a
CMakeLists.txtfile) from your Qt installation. - Go to Command Palette, and select Qt: Register Qt installation to register a Qt version.
- Go to Command Palette and select Qt: Set the recommended Qt Extension settings to show the registered Qt CMake kits on the status bar.
- Go to Command Palette and select Qt: Scan for kits. Then select a kit that matches your Qt version and toolchain.
- Select
on the status bar. - Select the executable as the launch target to build and run the project.
You can now select a tutorial to follow to learn about developing Qt applications. Use project wizard templates to create your own application projects.
See also Installation, Register Qt installations, Tutorials, and Create Qt projects.
© 2026 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.