are you linking the qtgui library in your project?