Kör Python-applikationer
Du kan köra Qt for Python -applikationer direkt från Qt Creator. Om du använder guiden för nya projekt för att skapa applikationsprojektet körs filen main.py automatiskt när du väljer knappen Run.
Ange inställningar för Python-körning
För att ange inställningar för att köra applikationer på den enhet som du väljer för ett kit, gå till Projects > Run Settings.

I följande tabell sammanfattas inställningarna för att köra Qt for Python -applikationer.
| Inställning | Värde |
|---|---|
| Python | Sökväg till den körbara Python-filen. |
| Buffered output | Lagrar utdata i en buffert. Detta förbättrar utdataprestandan, men orsakar fördröjningar i utdata. |
| Script | Visar sökvägen till huvudfilen för det projekt som ska köras. |
| Command line arguments | Kommandoradsargument som ska skickas till det körbara programmet. |
Ange anpassad körkonfiguration för det körbara programmet
För att köra en annan Python-fil än main.py skapar du en anpassad körkonfiguration för det körbara programmet:

- Välj Add > Custom Executable.
- I fältet Executable anger du sökvägen till den körbara Python-filen.
- I fältet Command line arguments väljer du den Python-fil som ska köras.
Se även Aktivera kit för ett projekt, Konfigurera projekt för körning, Skapa Qt for Python -applikationer och Utveckla Qt for Python -applikationer.
Copyright © The Qt Company Ltd. and other contributors. 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.