Currently, the WidgetQt.cpp file depends on the QWebFrame, and QWebPage classes, which are located in WebKit. This is problematic and needs to be implemented differently. I believe this same problem also persists in several other areas inside WebCore, where a dependency on WebKit is not appropriate, and should be done through delegation instead.
This has been fixed with hyatt's ScrollView and friends rewrite I believe.