PDA

View Full Version : QtWebkit - Flash rendering problem



rsilva
4th May 2011, 05:21
I'm creating a flash game client and found that somethings isn't being rendered by Qt like they are rendered in another browser.

I'll post a example:

Game played in Opera Browser:
http://i54.tinypic.com/w1r1uf.jpg

Game played in my QWebView Client:
http://i53.tinypic.com/o0pgmr.jpg

I know this is a small difference, but the same thing seems to happen with some bigger dynamic objects while the user is playing. Not a "very important" problem.

But I want to know about this, if it's a bug, if I can fix it and how.

Can you help me ?

wysota
4th May 2011, 12:20
You mean the margin between the brown thing and the borders of the background box? It might be because of differences in the interpretation of the HTML box model between Opera and WebKit.

rsilva
4th May 2011, 12:43
But, this is inside the flash game, by using the same plugin, I think the plugin render itself right ? I don't think it's html-related.
Isn't there a way to "fix" it ?

wysota
4th May 2011, 14:59
You are using the same plugin in both browsers so if that were the plugin's fault, you'd get the same output in both cases. How is the plugin embedded in html code?

rsilva
4th May 2011, 22:36
I've found that the problem was using a high width and height that makes the game doesn't render very good, tested on the browser and same thing happened, but not the others.

I'm using the common <embed> tag with src, width, height properties.

wysota
5th May 2011, 08:38
Try fiddling with margin and padding attributes.