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. is it possible to host nodejs app inside qt app ?
QtWS25 Last Chance

is it possible to host nodejs app inside qt app ?

Scheduled Pinned Locked Moved Solved General and Desktop
qt5node.jswebviewwebengine qt5webserver
3 Posts 2 Posters 2.4k 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.
  • Q Offline
    Q Offline
    Qjay
    wrote on 10 Mar 2018, 10:37 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 Mar 2018, 22:35 last edited by
      #2

      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
      0
      • Q Offline
        Q Offline
        Qjay
        wrote on 12 Mar 2018, 06:33 last edited by
        #3

        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
        3

        2/3

        10 Mar 2018, 22:35

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved