Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Connecting HTML/JavaScript page to Qt
QtWS25 Last Chance

Connecting HTML/JavaScript page to Qt

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 813 Views
  • 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.
  • N Offline
    N Offline
    nicky j
    wrote on last edited by
    #1

    Hey there,

    I have created a page in HTML/CSS/JavaScript to act as a start page to my browser which is written in Qt C++. My html page has a button on it, when this button is clicked, I would like my browser to make a new tab in the tab widget, populate that tab with a child widget, and finally set the URL of the webView (located in the child widget). Is this possible?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Yes, it is possible. "QtWebkit Bridge":http://qt-project.org/doc/qt-5.0/qtwebkit/qtwebkit-bridge.html

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nicky j
        wrote on last edited by
        #3

        okay the webkit bridge tutorial looks nice, but it seems like it might be overkill for what I am trying to do. All I need to do is have the JS in the HTML file send a signal and a bunch of data to the Qt C++. Is there anyway to send a signal and a bunch of data without getting as complicated as the webkit bridge does?

        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