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

前端 未结 7 1071
别那么骄傲
别那么骄傲 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:39

    Had the same problem. found some videos on Youtube. So here is an even simpler suggestion. This is all the code you need:

    #include 
    
    int main(int argc, char *argv[])  
    {
       qDebug() <<"Hello World"<< endl;
       return 0;
    }
    

    The above code comes from Qt5 Tutorial: Building a simple Console application by

    Dominique Thiebaut

    http://www.youtube.com/watch?v=1_aF6o6t-J4

提交回复
热议问题