Qt – Adding External Libs to your Project

February 22, 2009


During Qt Development with Qt Creator, emerged the necessity to add more libraries to my project, at the actual state of art Qt Creator does not provides an automated/graphical system to add libraries and since is using GCC is not possible to use #pragma comment(), so we have to modify by hand some files, here how to.

Suppose that you need to add psapi library, first of all locate into project directory Makefile.Debug and Makefile.Release

Open one of the two files (depends on how you need to deploy you program) and locate

LIBS        =        -L”c:\Qt\QtCreator\qt\lib” -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4

now you can easly add your lib

LIBS        =        -L”c:\Qt\QtCreator\qt\lib” -lmingw32 -lqtmaind -lQtGuid4 -lpsapi -lQtCored4

See you to the next post.. 🙂

QtCreator at Work

February 1, 2009

Hi there,

Great news form Qt world, Qt 4.5 are going to be free LGPL, and the new editor works fine!

Here a shot of Qt Creator the Qt IDE actually only for C++ at work:


I hope that more and more ppl will switch to Qt, they are simply fantastic! more refined and advanced of MFC and .NET!

Here a link to Qt HeadQuarter:


See you to the next post.. 🙂