Monday, April 6, 2009

[Eclipse] Qt Eclipse Integration for C++

Introduction:

Even though Qt has its own powerful IDE tool - QT Creator, I still prefer to use eclipse for developing QT programs.

Installation:

The basic requirements for installing the plugin are Eclipse and CDT. You can get the related software from these two posts [Eclipse] Eclipse HowTo [Eclipse] Integraded with C/C++.

Download Qt Eclipse Integration for C++ here

Unpack the archive to your eclipse folder and restart the eclipse.

Create a New Qt GUI Project:

After the installation completed, click "File->New->Project->Qt Gui Project". Click "Next" to continue.


Given a name for your project and click "next" to continue.


Select a UI type to inherited. In this example, I choose the QManWindow.


Select some modules or just leave it as default. Click "Finish" to create the project.

Coding:

Qt is a object orientation framework, so you must be familiar with object orientation programming. To getting started with the QT API, please see the official Qt tutorial

http://www.qtsoftware.com/developer/getting-started

Compile and Run:

Right-Click your Qt project, and choose the "Run As", click "Local C/C++ Application" to compile and run the Qt program.

Qt make GUI design easier, hope you will love it.

0 意見:

Post a Comment