Configuration of Qt4 in Code::Blocks
Qt sets the standard for high-performance, cross-platform application development. It includes a C++ class library and tools for cross-platform development and internationalization. Qt is also available to Java programmers through Qt Jambi.
This article is NOT a tutorial for programing Qt4 application. It's only made as a note for setting Qt4 in Code::Blocks. Just following the steps below you can easily configure the setting. After all, you could enjoy coding your GUI programs and have fun.
- You must have installed Code::Blocks on your OS and make sure that Code::Blocks has been upgrade by the latest Nightly Build.
- Then Go to Qt4 download page and get the Qt/Windows Open Source Edition.
- After completing Qt4 installation, let's start Code::Blocks then open "Global Variable Editor" and press "New" to create a variable named "qt4" and set "base","include", "lib" path according to the Qt4 installation path. The figure below shows the Qt4 default installation path.
- Now you can develop your own Qt4 application. Click on File>>New>>Project.. and select "QT4 project" to start the QT4 project wizard as shown below.
- When finishing the Qt4 wizard, there are some simple codes in the project main cpp file. You could build and run directly without doing anything. It is a program only contains a Quit button as figure showed below.
1 comment:
Gostei muito desse post e seu blog é muito interessante, vou passar por aqui sempre =) Depois dá uma passada lá no meu site, que é sobre o CresceNet, espero que goste. O endereço dele é http://www.provedorcrescenet.com . Um abraço.
Post a Comment