I'm trying to use a KHTML View to show some html stuff in my app, but when try to compile it I get the following linker error...

Qt Code:
  1. /home/shadow/project/kreator/src/genericcharmwidget.cpp:60: undefined reference to `KHTMLPart::KHTMLPart(QWidget*, char const*, QObject*, char const*, KHTMLPart::GUIProfile)'
  2. /home/shadow/project/kreator/src/genericcharmwidget.cpp:61: undefined reference to `KHTMLView::KHTMLView(KHTMLPart*, QWidget*, char const*)'
To copy to clipboard, switch view to plain text mode 

I've included the proper headers for both KTMLView and KHTMLPart and get no compiler errors.

In my setupUI() function (called in constructor) I have:
Qt Code:
  1. charmViewPart=new KHTMLPart(this);
  2. charmView=new KHTMLView(charmViewPart,this);
To copy to clipboard, switch view to plain text mode