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. Run a Web Application in Desktop Env

Run a Web Application in Desktop Env

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 510 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.
  • D Offline
    D Offline
    Discode
    wrote on last edited by
    #1

    Hello There ,
    I am newbie here , it could be stupid question but i really need your advices .
    I have a complicated Javascript module and one HTML page as UI for it.
    This HTML must run on WebServer to works properly, Actually it doesn't need any request and response Javascript only calculate values in a "Worker" loop.
    Here i need to implement operation on Desktop Application both Windows and Mac, i already read topics for QWebChannel and QHttpServer but i am not sure which one i should use.

    I need to know which way is better for my point,
    Thank you

    K 1 Reply Last reply
    0
    • D Discode

      Hello There ,
      I am newbie here , it could be stupid question but i really need your advices .
      I have a complicated Javascript module and one HTML page as UI for it.
      This HTML must run on WebServer to works properly, Actually it doesn't need any request and response Javascript only calculate values in a "Worker" loop.
      Here i need to implement operation on Desktop Application both Windows and Mac, i already read topics for QWebChannel and QHttpServer but i am not sure which one i should use.

      I need to know which way is better for my point,
      Thank you

      K Offline
      K Offline
      kenchan
      wrote on last edited by
      #2

      @Discode
      Did you look at putting a QWebEngineView on a dialog widget or a window widget?
      Docs are here

      D 1 Reply Last reply
      1
      • K kenchan

        @Discode
        Did you look at putting a QWebEngineView on a dialog widget or a window widget?
        Docs are here

        D Offline
        D Offline
        Discode
        wrote on last edited by
        #3

        @kenchan
        My Problem is all of my JS and HTML files are local , i tried QWebEngineView but it can't load Scripts locally

        K 1 Reply Last reply
        0
        • D Discode

          @kenchan
          My Problem is all of my JS and HTML files are local , i tried QWebEngineView but it can't load Scripts locally

          K Offline
          K Offline
          kenchan
          wrote on last edited by
          #4

          @Discode
          You should be able to, I do. I use QUrl::fromLocalFile(...) to give it a url. Also there are several settings for it that might effect what you can and can't do with it.

          D 1 Reply Last reply
          3
          • K kenchan

            @Discode
            You should be able to, I do. I use QUrl::fromLocalFile(...) to give it a url. Also there are several settings for it that might effect what you can and can't do with it.

            D Offline
            D Offline
            Discode
            wrote on last edited by
            #5

            @kenchan
            It's working now!
            Thank you so much

            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