Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, July 2007
BadMatch error when using QX11EmbedContainer


Message 1 in thread

Hi there,

 

I am writing a Qt application in Linux to play flash files. The new
player uses the XEMBED protocol, so I am first trying to use the
DiamondX <http://multimedia.cx/diamondx/>  plugin.

 

When I am embedding the widget that I created using the
QX11EmbedContainer object, it errors saying:

 BadMatch error

            Details: serial 3744, error_code 8, request_code 6
minor_code 0.

 

I am using Qt 4.2.2

 

Can anyone please help me with this?

 

Thanks in advance,

Mugdha

 


Message 2 in thread

 

I figured out the problem and the solution as well.

 

The problem was that, the plugin was calling gtk_init function and that
seems to not work with Qt. 

 

So what I did was created a GTK window and passed its parameter to the
plugin and embedded that inside the Qt QX11EmbedContainer object and
that works.

 

 

________________________________

From: Mugdha Jain [mailto:MugdhaJain@xxxxxxxxxxxxx] 
Sent: Thursday, July 19, 2007 1:58 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: BadMatch error when using QX11EmbedContainer

 

Hi there,

 

I am writing a Qt application in Linux to play flash files. The new
player uses the XEMBED protocol, so I am first trying to use the
DiamondX <http://multimedia.cx/diamondx/>  plugin.

 

When I am embedding the widget that I created using the
QX11EmbedContainer object, it errors saying:

 BadMatch error

            Details: serial 3744, error_code 8, request_code 6
minor_code 0.

 

I am using Qt 4.2.2

 

Can anyone please help me with this?

 

Thanks in advance,

Mugdha

 


Message 3 in thread

Hi Mugdha,

I too am writing an Qt app to embed Mozilla plugins. In my app the diamondx
plugin is embedded fine through the QX11EmbedContainer widget (with out need
to create a gtk window ).

How to you are trying to embed the diamondx plugin in the QX11EmbedContainer
widget? With function embedClient(flaspluginWId) ???

If it is thus, better it deals with: NPP_SetWindow(npp ,
containerWidget->winId())

The diamondx function "DiamondXSetWindow" takes care of embed the plugin in
the QX11EmbedContainer widget through: This->container =
gtk_plug_new((GdkNativeWindow)window->window);



-- 
 [ signature omitted ]