Skip to content
  • 0 Votes
    3 Posts
    2k Views
    QjayQ
    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.
  • 0 Votes
    2 Posts
    2k Views
    aha_1980A
    @Saman19 said in using Jsoncpp library in Qt on Raspberry pi 3: /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.so Please show the output of the commands file /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.so ldd /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.so Any reason you don't use Qt's built-in JSON support?
  • Passing values between apps and webserver

    Unsolved QML and Qt Quick webserver cloud
    2
    0 Votes
    2 Posts
    2k Views
    LorenzL
    Hi Phils, You are mixing up some things here. Your app is split in two parts: server part (not written in qt, might be provided by a third party or written by you in a server language such as PHP) client app (qt) Thus, you won't necessarily need to upload your app to the cloud. However, you might need a webserver if you intend to host your app on your own. There are different ways to implement a web service and choosing the correct one depends on your needs. If you only want to store some simple key - value pairs on a server, a mobile backend as a service, such as the WebStorage offered by V-Play could be a solution for you. If you need very complex tasks, you might want to implement an API on your own. You might want to have a look at this tutorial. No matter what kind of API your application will use, you will most likely talk to it using JSON or XML using XMLHttpRequest.. You can find a small code snippet that shows you how to read and parse JSON from a server using XMLHttpRequest here. You can use this snippet to play around with the fake-APIs provided here. A very complete example where an API is used is the Qt World Summit 2017 app. Instead of the asset-url used here, also a http:// url could be used. Let me know what you would like to do and I can try to give you more guidance. Best, Lorenz
  • Best approach for web applications

    Unsolved General and Desktop webserver websocket html5 javascript remote
    15
    1 Votes
    15 Posts
    10k Views
    M
    @kshegunov ok now I understand! Thanks!
  • Launch nodejs from Qt5 application

    Unsolved General and Desktop qprocess node.js webserver
    5
    0 Votes
    5 Posts
    4k Views
    SGaistS
    Do you have any logging going on that would allow you to check whether your nodejs server does something ?
  • Forum isn't working properly without https/ssl

    Unsolved Qt.io webservices http webserver forum qt.io https
    1
    0 Votes
    1 Posts
    5k Views
    No one has replied
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Qt webserver with POST support

    General and Desktop webserver post
    8
    0 Votes
    8 Posts
    4k Views
    X
    I had no idea about the qt-pods. Thank you for the handy information. It's incredible how I am learning things every time I check this forum XD