[Qt-interest] Qt application as browser plugin ?

Frank Hemer frank at hemer.org
Wed Mar 10 13:48:05 CET 2010


On Wednesday 10 March 2010 13:36:13 Martin Schröer wrote:
> Francesco Tamagni schrieb:
> > On Wed, Mar 10, 2010 at 3:11 AM, Martin Schröer <gordon at gordonswelt.de> 
wrote:
> >> This message is an addition to the message i posted earlier, in which i
> >> described that
> >> using the current version of Qt [which is 4.6.2] the qtbrowserplugin
> >> solution
> >> supplied by Nokia / Trolltech won't work anymore.
> >
> > sorry i can't find your previous message, but i'm using qtbrowserplugin
> > with current QT 4.6.2 and it works for me!
> >
> > francesco
>
> Please give me further information about this.
> I'm trying to compile it using Qt 4.6.2 with MinGW 10 on Windows XP.
>
> First of all, it complains about QtNPStream not being declared properly
> and gives two additional warnings about NPAllocate and NPDeallocate
> being declared but never used.
> "error: ISO C++ forbids declaration of 'QtNPStream' with no type"
>
> While the QtNPStream issue can be solved easily by addition of a class
> QtNPStream declaration,

Seems like a bug introduced by an invalid merge op,
changing the head of qtbrowserplugin_p.h like the following:

>>>>>>>>>> old >>>>>>>>>>>>>

#ifdef Q_WS_X11
#   include <X11/Xlib.h>

class QtNPStream;
class QtNPBindable;
#endif

<<<<<<<<<< new <<<<<<<<<<<<

#ifdef Q_WS_X11
#   include <X11/Xlib.h>
#endif

class QtNPStream;
class QtNPBindable;

fixes this issue.

> the compiled dll won't run in the browser ( i'm using Firefox 3.5.8 ).
> Further investigation of this
> issue using the google Chrome browser is showing a
> "procedure entry point _Z14qWinMsgHandler9QtMsgTypePKc could not be
> located in dll QtCore4.dll"
> error.
>
> I also traced the possibility that my PATH settings were incorrect, thus
> pointing to Qt QLLs of an earlier
> Qt install, but didn't find anything - path is pointing to current Qt
> version 4.6.2 correctly.

I cannot reproduce this - it works for me.

Frank




More information about the Qt-interest-old mailing list