![]() | Creating the application |
| Prev | Next |
The framework in which our program will sit in (i.e. the main window) can be done easily and quickly by using KDevelop. Start KDevelop and select New Project in the Project menu. The Application Wizard appears then. Choose a C++ -> KDE -> Simple KDE Application. Fill in the blank lines with the project name (SigCreate), your name as author, your email (see Picture 1).


" Good - your configure finished. Start make now * * *** Success ***so you can run "make" with Build -> Build Project (or using the F8 shortcut). Then Build -> Install. Then Build -> Execute program (or F9). The result is shown in Picture 3.

We now have our framework and are ready to start developing our program.
If KDevelop does not recognize your QTDIR and KDEDIR variables, you can set them in Project -> Project Options... in Configure Options.

Qt Designer is a tool for designing and implementing user interfaces. It helps you arranging your widgets on a form and adding a proper layout so your interface can be resized properly. I recommand that you read the Qt Designer manual to know everything about Qt Designer. Qt Designer includes a code editor but we'll use KDevelop to edit and modify all code.
We will now create the interface of our application using Qt Designer. A form from Qt Designer is saved with a .ui extension because it is then processed by the uic program to generate a .h and .cpp files. KDevelop takes care of that, the only thing we need to do is to create the form.
In KDevelop, click on File -> New and fill the dialog window that appears. First write the file name: sigcreatedlg and select what new file you want in the combobox: here we want a Widget (.ui). Please be sure that "Add to project" is checked, this ensures that the Makefile.am is updated.


If the new file sigcreatedlg.ui is not open in Qt Designer, open the Automake Manager, right-click on the file and select Open With then you should have designer. Choose it. Qt Designer will open.

| Prev | Home | Next |
| Lexicon | Up | Designing the program |