Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Change default run configuration in Qt Creator
Qt 6.11 is out! See what's new in the release blog

Change default run configuration in Qt Creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 784 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Donald Duck
    wrote on last edited by
    #1

    When I create a new WebAssembly project in Qt Creator, the default run configuration runs the following command:

    C:/Qt/emsdk/upstream/emscripten/emrun.py --browser firefox --port "<port>" --no_emrun_detect --serve_after_close C:/Path/To/Project/outputfile.html
    

    When Qt Creator tries to run this I get an error saying "No executable specified", probably because it's trying to run a .py file when it expects a .exe file. I've figured out that I can solve this issue by Projects > Run and creating a custom run configuration telling it to run

    python.exe C:/Qt/emsdk/upstream/emscripten/emrun.py --browser firefox --port "<port>" --no_emrun_detect --serve_after_close C:/Path/To/Project/outputfile.html
    

    (this is the same as the default one except I explicitly tell it to open the .py file with python.exe)

    When I do this for a project, it saves those settings for that project and I don't get any more issues with that specific project. The problem is that this setting is only saved for one project at a time, so each time I create a new WebAssembly project I need to remember to do this again.

    It would be nice to find a way to change the default run configuration so that it automatically adds python.exe at the beginning of the default run configuration for every new WebAssembly project, so that I don't manually have to change the run configuration every time I create a new project. However, I can't find such a setting? Is this possible? And if so, how do I do it?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved