[Qt-interest] Qwebplugindatabase and error building WebCore

Zaid Amir z.alamir at genie-soft.com
Sun Mar 7 16:29:08 CET 2010


Hi

I am developing a GUI that uses webkit. In my design I have created a plugin
which acts as a host between the webview and other dlls using the qtnpapi.
The problem now is that I want to expose the addSearchPath and Refresh APIs
found in QWebplugindatabase which to my surprise was commented out in
QWebsettings.h.

I have tried to uncomment and rebuild QWebSettings.h but this generated the
following errors:

Error	116	error C2227: left of '->_q_webActionTriggered' must point to
class/struct/union/generic type
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qwebpage.cpp	290
Error	112	error C2227: left of '->_q_pageDestroyed' must point to
class/struct/union/generic type
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qwebview.cpp	141
Error	114	error C2227: left of '->_q_onLoadProgressChanged' must point
to class/struct/union/generic type
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qwebpage.cpp	289
Error	120	error C2227: left of '->_q_doLoadFinished' must point to
class/struct/union/generic type
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qgraphicswebview.
cpp	122
Error	118	error C2227: left of '->_q_cleanupLeakMessages' must point
to class/struct/union/generic type
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qwebpage.cpp	291
Error	111	error C2027: use of undefined type 'QWebViewPrivate'
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qwebview.cpp	141
Error	113	error C2027: use of undefined type 'QWebPagePrivate'
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qwebpage.cpp	289
Error	115	error C2027: use of undefined type 'QWebPagePrivate'
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qwebpage.cpp	290
Error	117	error C2027: use of undefined type 'QWebPagePrivate'
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qwebpage.cpp	291
Error	119	error C2027: use of undefined type 'QGraphicsWebViewPrivate'
c:\QT\src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\moc_qgraphicswebview.
cpp	122


I am trying to rebuild webCore using VS2008 but I'm not sure why I keep
getting these errors which doesn't even sound remotely related to the method
that I have exposed. I am no QT whiz so I need some help to tell me how can
I expose the methods I want, preferably without changing any QT core
components.

Regards





More information about the Qt-interest-old mailing list