在Windows下引入qt.widgetapp规则的时候,如何编译命令行程序? #3910
Answered
by
star-hengxing
jingkaimori
asked this question in
Q&A
Replies: 2 comments 2 replies
-
add_ldflags("/subsystem:console") |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jingkaimori
-
就是自己 add_frameworks 按需导入下,一行代码事情。。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
这一规则调用了load模块并将
gui
参数设为true
,而在Windows下gui=true
的程序没有命令行输入输出。如果使用
qt.console
规则,则需要手动导入QtWidgets
等库。Beta Was this translation helpful? Give feedback.
All reactions