How do I create a simple Qt console application in C++?

前端 未结 7 1069
别那么骄傲
别那么骄傲 2020-11-28 22:06

I was trying to create a simple console application to try out Qt\'s XML parser. I started a project in VS2008 and got this template:

int main(int argc, char         


        
7条回答
  •  抹茶落季
    2020-11-28 22:33

    Don't forget to add the

    CONFIG += console 
    

    flag in the qmake .pro file.

    For the rest is just using some of Qt classes. One way I use it is to spawn processes cross-platform.

提交回复
热议问题