gtkmm and Qt Creator

This is part of a more general work dedicated to gtkmm accessible here. The aim of this post is to explain how to use the C++ wrapper for GTK+ (gtkmm) with the Qt Creator IDE. This configuration has been done with the following software versions :

Ubuntu 14.04 LTS (and 12.04 LTS)

Qt Creator 3.0.1

gtkmm 3

Package installation

First, install Qt creator if it is not done yet:

sudo apt-get install qtcreator

Now install the GTK+ developpment package:

sudo apt-get install libgtkmm-3.0-dev

Project configuration

Create a new Qt Application Console:

Once, the project is created, edit the project file (.pro) and disable Qt libraries (QT-=gui and QT-=core). Add the following lines to use the gtkmm libraries