Console When you want to run the program in the cmd window at the same time, you only need to add it in the pro file (this is a general usage ): CONFIG += console You can. In general, we all want the cmd window to appear in debug, but the release does not show the cmd window. This is also good for network security. 2009FLY digest, zhengzheng's blog WWW.2009FLY. COM win32:CONFIG(debug, debug|release):CONFIG += console
- We want to enable this function only in debug mode under win32.
CONFIG (debug, debug | release)For the meaning of the http://hi.baidu.com/cyclone/blog/item/d77a8618608448b94bedbc0b.html content from www.2009fly.com 2009FLY digest, zhengzheng's blog WWW.2009FLY. COM
QtestlibIn fact, the cmd window appears not only in the preceding options. When we enable the qtestlib module, the Qt program will also pop up the console window. WEB technology Ajax, RIA 2009FLY digest, is on the blog WWW.2009FLY. COM CONFIG + = qtestlib cybersecurity 2009FLY digest, blog: WWW.2009FLY. COM Or QT + = testlib game programming 2009FLY digest, blog: WWW.2009FLY. COM
- I am not quite clear about the origins of these two writing methods. The previous example is the usage of Qt, which is explained by manual of Qt. At present, both of them can be used.
In this case, the pop-up console is actually easy to understand. After all, qtestlib is used for testing. During the test, the pop-up console outputs some intermediate results, which is exactly what everyone expects. But what if we want to use things in qttestlib in a GUI program without a cmd window? One way to eliminate cmd (Note: In Qt A better solution is provided in the article linking subsystems and entry functions in Windows (final version)
The following describes how to modify the Makefile in the Mingw and VS2008 environments:
Replace the following: -Wl,-subsystem, console Network Security 2009FLY digest, blog WWW.2009FLY. COM Changed to the data technology Oracle, DBMaker, DB2 2009FLY digest, is blog WWW.2009FLY. COM -Wl,-subsystem,windows Recompile
In this example, the operating system kernel 2009FLY digest is published on WWW.2009FLY. COM. /SUBSYSTEM: CONSOLE mobile development, Android, iPhone 2009FLY digest, zhengzheng blog WWW.2009FLY. COM Change /SUBSYSTEM: WINDOWS/entry: mainCRTStartup 2009FLY digest, WWW.2009FLY. COM You can. For a simple discussion of the linked subsystem, you can look at this: http://hi.baidu.com/cyclone/blog/item/96624a90fb4ca081a977a4db.html |