i'm trying to install some apps but when i ./configure them i get the message

Qt... configure: error: Qt (>= Qt 3.0.3) (headers and libraries) not found. Please chech your installation!

i searched with kpackage and Qt 3.1.1 is installed
why is it not working then?