As pointed our by Yael, qquickwebview.cpp uses QFileDialog, which requires the use of QT += widgets when compiling the WebKit2 static library. We should delegate all Widget dependencies into the WebKit1 static library and use them from the WK2 one (that means building WK1 before WK2). The intermediate goal is to compile WebCore and WK2 without Widgets, regardless of the fact that the resulting shared library has a dependency to QtWidgets. By avoiding the dependency in those two static libraries we reduce the risk of accidentally introducing new dependencies.
Created attachment 132492 [details] Patch
Comment on attachment 132492 [details] Patch Attachment 132492 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/11981852
Committed r112093: <http://trac.webkit.org/changeset/112093>
One more place where QApplication::wheelScrollLines is used (actually compiles but makes minibrowser --desktop not react on wheel scroll): https://bugs.webkit.org/show_bug.cgi?id=81938. r? :)
*** Bug 81938 has been marked as a duplicate of this bug. ***