Run Python applications | Qt Creator Documentation

- Qt Creator Documentation
- Run Python applications
- Qt Creator 19.0.0

Configure projects for running ◦ Run in Qt Application Manager

# Run Python applications

You can execute Qt for Python applications directly from Qt Creator. If you use the new project wizard to create the application project, the `main.py` file is automatically executed when you select the Run button.

## Specify Python run settings

To specify settings for running applications on the Run device that you select for a kit, go to Projects > Run Settings.

The following table summarizes the settings for running Qt for Python applications.

Setting | Value
--- | ---
Python | Path to the Python executable.
Buffered output | Stores the output in a buffer. This improves output performance, but causes delays in output.
Script | Shows the path to the main file of the project that will be run.
Command line arguments | Command-line arguments to pass to the executable.

## Specify custom executable run configuration

To run some other Python file than `main.py`, create a custom executable run configuration:

1. Select Add > Custom Executable.
2. In the Executable field, specify the path to the Python executable.
3. In the Command line arguments field, select the Python file to run.

See also Activate kits for a project, Configure projects for running, Create Qt for Python applications, and Develop Qt for Python applications.

Configure projects for running ◦ Run in Qt Application Manager