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. Launching a qt app from a .html file
Forum Updated to NodeBB v4.3 + New Features

Launching a qt app from a .html file

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

    Hey all,

    I was wondering if it is possible to launch a Qt5 application from a .html file.
    the scenario:
    I have a web browser I made in Qt5 and a web site (.html file) that is rendered in a QWebView. The web site has a bunch of buttons corresponding to web apps on it. Is it possible to set it up so that I can click one of the buttons on the html site and launch a new window with a QWebView and possibly other widgets in it? This new window would load the URL of the web app.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      This is definitely possible. Please look at Qt, JavaScript and Web-kit integration. This should help. If you need an example do let me know. I can provide you in email.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rahul Das
        wrote on last edited by
        #3

        You can expose QObject in the JS world. Look into Webkit bridge. http://qt-project.org/doc/qt-5.0/qtwebkit/qtwebkit-bridge.html


        Declaration of (Platform) independence.

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

          okay thanks! It really helps. Ill check out the examples. Oh, do either of you know of any open-source projects that utilize qt and web integration?

          Thanks again!

          1 Reply Last reply
          0
          • R Offline
            R Offline
            Rahul Das
            wrote on last edited by
            #5

            QML/Webkit2 project : https://github.com/penk/SlateKit
            Another one is http://code.google.com/p/arora/
            http://blog.qt.digia.com/blog/2011/12/20/orange-helium-a-lightweight-qtwebkit-based-browser/


            Declaration of (Platform) independence.

            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