 Hey everybody, it's Brian. This is our second C++ Qt video. Today, we're just going to cover a very basic Hello World application. As you can see, we've got Qt Creator version 2.01. We're going to go File, New, and don't panic if this looks a little different if you're in a different operating system. Basic thing is the same. Just choose a Qt C++ project. Choose Console. We'll get to the GUI later. Choose, give it a name. And we're just going to call it Hello. Give it a path. And you can browse through your file system however you want to do it. You can even select Version Control for these tutorials. We're not going to use any. And if you have multiple versions of the Qt framework installed, you can choose which version to target. And hit Finish. And ta-da! Here is the basic Qt program. We're just going to add in a little one here called IncludeQDbug. And that'll give us access to the debug function. So let's actually add QDbug up if I could spell again today. And we add a little boo-boo there. Forgive me. So it would be QDbug. Notice the lowercase Q. And then we're going to bit shift out Hello World. And what we're actually doing here is creating a Q string or just a string. Let's run this. I want you to actually see this thing run. Notice how it builds it and there it runs it. And Hello World. And you notice how the window didn't just magically disappear like it did in previous tutorials. That is the benefit of this guy right here, the QCore application. This is part of the QTCore framework. It's very complex, but we're going to get into this a little bit at a time. QCore application is the application itself. The main function starts, creates an instance of the QCore application in memory called A. Hands at the arguments and then runs it. A.exec. This is a message loop. It sits there forever and ever and ever waiting for you to close it. That's all you really need to know. I'll walk you through a little bit here. Build issues. There were none, fortunately. Application. You can see that it says starting and exit it with code and that's the exit code. And compile output. This is a little informative here. Starting and then you see how it's starting QMake and it's handing it this eTestHelloHello.pro. What is that? Well, that's our project file up here. You notice this project file that got created. What happens is Qt will read your project file in and this is generated automatically by Qt Creator. And you see we have some items in here. Let's go over these real quickly. Qt where plus equals meaning we're adding the core framework. Qt minus equals meaning we're removing the GUI portion. Target equal hello. Config plus equals console. Config minus equal app bundle. Template app sources plus equal main.cpp. So what does this mean really? It means we're adding the core framework, removing the GUI. We're targeting the hello project. It's a console application. And we're adding the main.cpp source file in here which is our application. That's it. Really, in a nutshell, that's all there is to it, to a very simple Qt application. Now, when you flip back into the project file, you notice how we're adding core. That gives us access to a whole lot of things. For example, if you want to do control space, it'll pop open this IntelliSense window. And you see all these things, those are all added by Qt core. So there's a lot of stuff out there. For example, QString. I'm just going to make a simple hello world. And you can do the same thing here. Now QString is part of the core framework. So you don't have to explicitly say include Qt core, include QString because it's already there. It's part of the core framework. Let's run this and just verify that it runs. Sure enough, same results. Hello world. This is Brian and I'm going to keep this tutorial kind of short. I want you to play around a little bit with the Qt creator and get familiar with its interface and just how to make a basic hello world application. Thanks for watching.