Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Run a Web Application in Desktop Env

    General and Desktop
    2
    5
    311
    Loading More Posts
    • 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
      Discode last edited by

      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 Reply Quote 0
      • K
        kenchan @Discode last edited by

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

        D 1 Reply Last reply Reply Quote 1
        • D
          Discode @kenchan last edited by

          @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 Reply Quote 0
          • K
            kenchan @Discode last edited by

            @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 Reply Quote 3
            • D
              Discode @kenchan last edited by

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post