Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt classes bindings for Qt WebKit JavaScriptCore?
Forum Updated to NodeBB v4.3 + New Features

Qt classes bindings for Qt WebKit JavaScriptCore?

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 3 Posters 4.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rikardo
    wrote on 3 Aug 2010, 07:10 last edited by
    #1

    Are Qt classes exported to javascript core of Qt WebKit? It would be great if I could just call QSqlDatabase class from withing the HTML script.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on 3 Aug 2010, 08:02 last edited by
      #2

      AFAIK they are not exported.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rikardo
        wrote on 3 Aug 2010, 09:26 last edited by
        #3

        Are there any plan for the future?

        1 Reply Last reply
        0
        • B Offline
          B Offline
          benjamin.poulain
          wrote on 27 Aug 2010, 13:30 last edited by
          #4

          They are obviously not exported by default but you can expose any QObject to WebKit.

          For non-gui object, you simply add them with QWebFrame::addToJavaScriptWindowObject(). There are some great hybrid applications (WebKit + C++) build like that.

          To embed graphical content, it is a bit more tricky, you need to make you own QWebPluginFactory.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved