Home

This documentation is out of date. Please refer to the latest version.

[Previous: Qt Version Management] [Qt Creator Manual] [Next: Writing a Simple Program with Qt Creator]

Creating a Project in Qt Creator

Creating a New Project

To create a new project, select New Project from the File menu. You can create one of the following three projects:

  • Qt4 Console Application
  • Qt4 Gui Application
  • C++ Library

In this example, we select a Qt4 Gui Application and click OK.

Setting the Project name and location

Next, we set the project's name and its path. Click on the ... button to browse and select your path.

Ideally, the path should not contain spaces or special characters.

Selecting The Necessary Qt Modules

Click on the check boxes of each Qt Module you would like to include in your project.

Since we started a Qt4 Gui Application, the Core and Gui modules are set, but you are free to add more.

Specifying Class Information

Specify the name of the class you would like to create. The Header file, Source file and Form file fields will update automatically according to your choice of class name.

You also have to select the base class for your class, either a QWidget, QDialog or QMainWindow, from the drop down box.

Creating the Project

Finally, review the files that will be created for you. Click Done and your project will be generated.

[Previous: Qt Version Management] [Qt Creator Manual] [Next: Writing a Simple Program with Qt Creator]


Copyright © 2009 Nokia  
Qt Creator 1.1.0