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 :copied node app code to my qt project. created a process of node running the node app via Qprocess. provided localhost url:port to webengineview and it shows the app.