From ThorstensHome
Jump to: navigation, search


Why QtCreator is great

  • Back button bringing you back to your last cursor position
  • Code completion
  • "Run" button
  • Auto indent Selection button
  • Qt Designer integration
  • svn integration

How to get QtCreator

git clone git://gitorious.org/qt-creator/qt-creator.git
cd qt-creator
qmake && make -j8 && make install


QtCreator problem:

The class definition of Ui::MainWindow cound not be found in /.../mainwindow.cpp

Solution: Add the following code to mainwindow.cpp. Then it is contained in mainwindow.cpp and mainwindow.h:

namespace Ui {
    class MainWindow;

newer qt required

If your qtcreator requires Qt 4.7 in order to be compiled, but you only have Qt 4.6, "downgrade" it to 1.3.1 like this:

# git clone git://gitorious.org/qt-creator/qt-creator.git 
# cd qt-creator/
# git checkout 1.3.1
Switched to branch '1.3.1'

Or install the latest Qt from http://qt.nokia.com/downloads/linux-x11-cpp