The pro file INCLUDEPATH should include the directory containing the header files for your widget.