Display a Console in Qt

前端 未结 2 1140
暗喜
暗喜 2021-01-07 11:02

I want to add a console to my application, and here\'s my problem.

In Qt Creator, I create a new Project, I select \'Qt Console Application\', convert it from using

相关标签:
2条回答
  • 2021-01-07 11:36

    By default, GUI apps don't have the terminal enabled in QtCreator. Enabling it is simple:

    • In the left sidebar, click Projects
    • At the top, select your project's Run tab
    • In the Run section, check the Run in terminal checkbox

    enter image description here

    0 讨论(0)
  • 2021-01-07 11:44

    Ok, it turns out the console only shows up when directly running the deployed executable, meaning actually navigating to it and running it manually, not by running it within Qt Creator. I should've tested this first before posting the question, but I really didn't think it would've done anything. I'll leave the question up because it might help some others out anyway.

    0 讨论(0)
提交回复
热议问题