Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Solved is it possible to host nodejs app inside qt app ?

    General and Desktop
    qt5 node.js webview webengine qt5 webserver
    2
    3
    1371
    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.
    • Qjay
      Qjay last edited by

      Hi, is it possible to host a node app inside Qt app . i am not talking about webview where it loads the url and just acts like a browser.

      What I want is a simple Node.JS app hosted in Qt application . I don't know if it's possible , has anyone tried it ?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        What do you mean by hosted ? What should that app do ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • Qjay
          Qjay last edited by

          hey , sorry for not being clear but what i meant by hosted was like node app is not hosted anywhere . So i added node code to my qt project and in main.cpp i create a Qprocess of node and then just provide localhost url to webengineview.

          this solves my purpose.

          So in short what i did was :

          1. copied node app code to my qt project.
          2. created a process of node running the node app via Qprocess.
          3. provided localhost url:port to webengineview and it shows the app.
          1 Reply Last reply Reply Quote 3
          • First post
            Last post