Results 1 to 5 of 5

Thread: HTML5 in Webview in QML (performance issue)

  1. #1
    Join Date
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: HTML5 in Webview in QML (performance issue)

    Hi,

    I was looking for a page flip animation using QML, I found the flip board example, but not really what I wanted to do. Can you point me to any resources I can use for page flip animation? or any tutorials for page flip animation?

    I found an html5 example of a page flip demo in html5 rocks. i integrated this example in webview using QML, but when i ran it on the device, it is really really slow, almost as if nothings happens.

    Is it not advisable to use html5 animations in QML? I'm just a beginner in Qt/QML and I still have a lot to learn in animation in QML, since there are a few examples available. html5 has a lot of animation examples that's why I decided to try them.. :C but the performance is really a no-no.

    Thanks!


    Added after 14 minutes:


    by the way, here is the link i tried to integrate in webview.

    http://www.html5rocks.com/static/dem...ple/index.html
    Last edited by aya_lawliet; 23rd June 2011 at 14:56.

  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: HTML5 in Webview in QML (performance issue)

    If you're after speed on a slow device then I suggest you implement the effect in C++ as a QtQuick plugin.
    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
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: HTML5 in Webview in QML (performance issue)

    But is the effect possible using QML (without webview) or Qt? I think there will be lesser performance issue by using them.

    I haven't seen any code implementing this, just the Qt3d Demo of Page Flip, which is really good (as I've seen from the videos), but I think the implementation for this is not yet for release, thus, it couldn't be used for apps that should be published anytime soon..

  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: HTML5 in Webview in QML (performance issue)

    Quote Originally Posted by aya_lawliet View Post
    But is the effect possible using QML (without webview) or Qt? I think there will be lesser performance issue by using them.
    I don't understand your question. I just told you to implement it in Qt/C++. You have JavaScript code, just rewrite it in C++. The effect is really simple.
    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
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: HTML5 in Webview in QML (performance issue)

    uhm yeah, about that,

    I'm just a noob on c++/qt. And I'm not really sure how to implement that javascritp code using c++ since it uses canvas and context 2d. I'll just have to learn it then

    Thanks.

Similar Threads

  1. Qtwebkit performance issue ???????
    By Thành Viên Mới in forum Qt Programming
    Replies: 1
    Last Post: 28th May 2011, 08:06
  2. Performance issue when using signals
    By baluk in forum Newbie
    Replies: 2
    Last Post: 18th November 2010, 04:07
  3. Performance issue
    By Skorpien126 in forum Qt Programming
    Replies: 4
    Last Post: 2nd July 2010, 16:02
  4. Webview->setHTML issue?
    By Zantagor in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2009, 15:45
  5. Performance Issue
    By linuxdev in forum Qt Programming
    Replies: 1
    Last Post: 10th December 2008, 15:00

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.