Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Q creator 中制作了简单的 qt c++ 应用程序。它工作正常。如果控制台窗口关闭,程序将终止。即使控制台窗口关闭,我也想运行这个应用程序。我怎样才能做到这一点?如何在不可见模式下运行 qt c++ 控制台应用程序?
在 Gedit 或 nano 等文本编辑器中打开您的 .pro 文件。
然后找到这一行:CONFIG += CONSOLE
删除这一行,保存,重新编译