link error with static webkit 4.8.1
Hi all,
I’m stuck with a basic link error.
I’m using Visual 2008 and the Qt pluging on Windows 7 ×64 and Qt 4.8.1
I have a small class who inherits from QWebPage and I cannot link it with QWebkit.
my class :
- Q_OBJECT ;
- private:
- ResourceObject & resource;
- public:
- MyQWebPage(ResourceObject & res);
- public slots:
- bool shouldInterruptJavaScript();
- };
first error :
1>mywebclass.obj : error LNK2001: unresolved external symbol “public: static struct QMetaObject const QWebPage::staticMetaObject” (?staticMetaObject@QWebPage@@2UQMetaObject@@B)
And I have 8 of them like this one.
In the Qt project settings, QwebKit is included, on the project setting the lib file QtWebKitd4.lib is a dependencies.
In the file there are other class like
- Q_OBJECT
- private:
- ...
- public:
- ...
- signals:
- ...
- };
but those one does not produce link error.
Can someone help me ?
Thanks.
8 replies
Ohh, it’s really a bad news to me.
I have to i have to use web feature in a static build of Qt.
I can’t believe that there was no web control before webkit was intergrated into Qt.
Anyway, thanks for your reply, Volker.
If so, how can we use web feature, i mean something like QWebPage or QWebView, in static build of Qt?I have no idea, sorry.
While not a full featured web browser, QTextBrowser might support a suitable subset of HTML for your use case.
You must log in to post a reply. Not a member yet? Register here!



