[webkit-qt] Static Plugin Link error [SOLVED]

Lindsay Mathieson lindsay.mathieson at gmail.com
Sat Apr 16 16:53:47 PDT 2011


On 17 April 2011 08:41, Lindsay Mathieson <lindsay.mathieson at gmail.com> wrote:
> For test purposes I'm trying to create a static plugin in
> QtTestBrowser. I got as far as successfully exporting/importing a
> QWebKitPlatformPlugin implementation and having it recognised, but
> when I try to implement my QWebSpellChecker interface I get the
> following errors.


Isn't that the way of it - spend two days trying to solve a problem,
post for help, then figure out the answer a few minutes later :)

Needed to add QWEBKIT_EXPORT to the interface declaration in
qwebkitplatformplugin.h:, ie.

class QWEBKIT_EXPORT QWebSpellChecker : public QObject {
   Q_OBJECT

public:
   virtual ~QWebSpellChecker() {}
   virtual bool isInlineSpellCheckingEnabled() const = 0;


};


Which begs the question - the other interfaces in
qwebkitplatformplugin.h (QWebTouchModifier etc) will need that added
as well if they are to be usable in static plugins.


-- 
Lindsay


More information about the webkit-qt mailing list