Results 1 to 6 of 6

Thread: QtWebkit - Flash rendering problem

  1. #1
    Join Date
    Apr 2011
    Posts
    61
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QtWebkit - Flash rendering problem

    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:


    Game played in my QWebView Client:


    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 ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtWebkit - Flash rendering problem

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2011
    Posts
    61
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtWebkit - Flash rendering problem

    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 ?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtWebkit - Flash rendering problem

    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?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Apr 2011
    Posts
    61
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtWebkit - Flash rendering problem

    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.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtWebkit - Flash rendering problem

    Try fiddling with margin and padding attributes.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. How to play flash with Qtwebkit
    By devin in forum Qt Programming
    Replies: 1
    Last Post: 1st February 2012, 02:44
  2. Flash Player 10.1 QTWebkit Text Entry Problem Mac
    By joeyjojo in forum Qt Programming
    Replies: 2
    Last Post: 27th March 2011, 15:15
  3. Flash in QTWebkit 2.0 ?
    By maratoid in forum Qt Programming
    Replies: 1
    Last Post: 11th March 2011, 17:30
  4. QtWebKit and Flash plugin crash
    By PrimeCP in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2010, 15:24
  5. Running flash in QtWebkit
    By jay in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2010, 10:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.