Results 1 to 6 of 6

Thread: Is webkit functionality a superset of qtscript?

  1. #1
    Join Date
    Oct 2008
    Posts
    3
    Thanks
    1

    Default Is webkit functionality a superset of qtscript?

    Hi, I am just picking Qt basics. I am wondering why Qt provides both qtscript engine and webkit, when the webkit javascript engine is already integrated with QObject and given some binding it seems able to do whatever qtscript is doing. So why have two script environments?

    Can someone enlightenment me on this? Thanks you.
    Last edited by jurojon; 15th October 2008 at 15:26.

  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: Is webkit functionality a superset of qtscript?

    QtScript was integrated into Qt before Webkit entered the picture so currently we have to live with two javascript engines. There are plans to integrate the two into one entity in future.

  3. The following user says thank you to wysota for this useful post:

    jurojon (17th October 2008)

  4. #3
    Join Date
    Oct 2008
    Posts
    3
    Thanks
    1

    Default Re: Is webkit functionality a superset of qtscript?

    That's great, will be a better XUL I hope. What I want is to manipulate the DOM / javascript objects in webpage with QtScript / C++. I might be wrong, currently it seems hard to do, having to export everything into webkit javascript engine and evaluate scripts in it. It would be great if I can use QtScript API to manipulate webkit. Is it the direction Qt is heading?
    Last edited by jurojon; 17th October 2008 at 19:57.

  5. #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: Is webkit functionality a superset of qtscript?

    Neither QtScript nor Webkit's Javascript engine have anything to do with XUL. Currently there are no means to manipulate a webpage's DOM from C++, you have to do that using javascript. There are plans to make it possible in future though.

  6. #5
    Join Date
    Oct 2008
    Posts
    3
    Thanks
    1

    Default Re: Is webkit functionality a superset of qtscript?

    Thanks for the explanation. I know webkit isn't XUL, I just mean that the integration of Qt UI and webkit makes it similar to XUL in functionality.

  7. #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: Is webkit functionality a superset of qtscript?

    Personally I think it is much much more than XUL.

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.