• Skip to content
  • Skip to link menu
KDE Women Homepage
  • KDE Women Homepage / Tutorials / KDevelop templates / Qt templates
 
 

The KDevelop QMake based templates

There are 2 Qt-only templates for KDevelop 3.3, based on Qt3 and a third one for the next coming KDevelop 3.4 (release in Spring 2006) which is a Qt4 template. KDevelop 3.4 is located in branches/kdevelop/3.4 in the KDE svn repository.

You access these templates by opening the Project menu, New Project and then C++ -> QMake Project

Application

Generate a QMake/Qt3 based application (crossplatform compatible). The code is Qt only. Once the app wizard is finished and you have entered your name, email and such, choose in KDevelop the Build menu and Build Project to compile your project. KDevelop notices that there is no Makefile and ask you if you want to run qmake, you click on Run qmake. The project builds and then you execute it.

Please note in KDevelop the QMake manager on the right, just under Documentation and Code snippets. The qmake manager allows you to easily add/remove files and subprojects in your project.


Hello World program

This very simple Qt template displays the "Hello World" string in a terminal. There is only one .cpp file in this project plus the .pro files for the build.

In the Project -> Project Options menu, in the Run Options tab, you can choose Start in external terminal to run the project in an external terminal as sen on the screenshot.


Qt4 Application - Only in Kdevelop 3.4

KDevelop 3.4 can be found only in svn:
$ svn co svn://anonsvn.kde.org/home/kde/branches/kdevelop/3.4/

You need to quit KDevelop first and set your QTDIR in konsole to point to your Qt4 install dir.

export QTDIR=/path/to/qt4
export PATH=$QTDIR/bin:$PATH 
kdevelop &
The last command runs KDevelop again in this Qt4 environment. This ensures that qmake from qt4 is used.

Build the QT4 Application template using the Build menu, Build Project. This template uses Qt4 new classes, no qt3Support classes are present.


Documentation

What's new in Qt4
Qt4 Main Reference Page
The Qt4 Resource Center articles
 


Last update: 2006-10-04

[ Edit ]

Inform

Skip menu "Inform"
  • Home
  • KDE Home
  • Tutorials
    • KDevelop3 & Designer3
    • KDE3.5 from svn + KDE3.x
    • KDevelop templates
      • KDE General templates
      • Other KDE templates
      • SCons templates
      • Qt templates
    • A KDE4 template
  • Tips List
  • Events
  • Projects
  • Links

Communicate

Skip menu "Communicate"
  • Contact
  • About Us
  • Interviews

Global navigation links

  • KDE Home
  • KDE Accessibility Home
  • Description of Access Keys
  • Back to content
  • Back to menu

Search:


Maintained by women.kde.org Webmaster
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal