Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Create Web Service from Qt !
QtWS25 Last Chance

Create Web Service from Qt !

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 1.6k 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.
  • JREMIROMEROJ Offline
    JREMIROMEROJ Offline
    JREMIROMERO
    wrote on last edited by JREMIROMERO
    #1

    I want create a app android in qt, and i need connect to server database in postgresql from anywhere on the internet, however i see a many people that's recommend to use web service, now my question is: It's can use in qt? How i do?
    You could give me a simple example, thanks, and i'm sorry my bad english!!!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      If you mean: "Can I use Qt to communicated with a web service ?" Then yes, QNetworkAccessManager is made for that.

      If you mean: "Can I use Qt to build a web service ?" Then again yes but it might not be the best framework for that task.

      Which one is it ?

      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
      • JREMIROMEROJ Offline
        JREMIROMEROJ Offline
        JREMIROMERO
        wrote on last edited by
        #3

        I need is to connect an app to a postgresql database , either to select, insert and modify , What do you recommend me? A web service is optimal and more simple? Or is there another way to do this?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You really don't want to expose a direct access to a database to internet.

          So build a simple web service to access your database. Doing so you will have a standard interface to talk to and you can change what's behind it as needed.

          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
          • JREMIROMEROJ Offline
            JREMIROMEROJ Offline
            JREMIROMERO
            wrote on last edited by JREMIROMERO
            #5

            So, how I can do that in qt ? I need a easy example please!
            Imagine that I want to connect to the Customer table and I want to be displayed in a list in my app

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qxoz
              wrote on last edited by qxoz
              #6

              Maybe those links can help:
              qhttpengine
              qtwebapp

              1 Reply Last reply
              0

              • Login

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