Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | Eesti | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenčina | Slovenščina | српски | Türkçe | Tiếng Việt | Українська | 简体中文 | 繁體中文
QtCreator is an IDE from Nokia for Qt. It contains QtDesigner for UI design.
Qt Designer is a graphical program which allows you to easily build user interfaces, using a drag n drop interface. Here is a short example how it can go, for more information read the user documentation.
Add the widgets you want by drag-and-drop
Select Form -> Lay Out in a Grid
You get a decent look, and if you resize the window, the widgets resize as well.
To use KDE classes like KMessageBox, you need to tell qtcreator to use the KDE libraries when building. Go to your home directory, cd into yourproject and modify yourproject.pro. Add a line
LIBS += -lkdeui
Then you can start using KDE classes in your code.
This describes how to use QtCreator to integrate existing KDE 4 applications. It has been tested with QtCreator 1.2.80 and SUSE Linux 11.1 but should work same or similar with every combination. As an example KDE application we use ktimetracker from the kdepim module, other applications should work analog.
File -> Open -> kdepim/CMakeLists.txt.
As build directory choose /home/youruser/kdepim/ktimetracker. As arguments for cmake use e.g.
. -DCMAKE_INSTALL_PREFIX=/usr/local -DLIB_SUFFIX=64 -DCMAKE_BUILD_TYPE=debugfull
DLIB_SUFFIX=64 means that you want to install your libraries into directories named lib64.