سؤال

I created a new Qt5 project. All i do is drag a QWebView into my MainWindowUI. It gives me these errors:

error: undefined reference toimp__ZN8QWebViewC1EP7QWidget'`

and

error: undefined reference toimp__ZN8QWebView6setUrlERK4QUrl`

I havent even written a single line of code! Is something wrong with QtDesigner?

هل كانت مفيدة؟

المحلول

Add "webkit"( till Qt 4.7.4) or webkitwidgets(Qt5) on pro file. like "QT += core gui webkit", then clean and build.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top