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. Can anyone please tell me what is the process will be executed when system is like following?
Forum Updated to NodeBB v4.3 + New Features

Can anyone please tell me what is the process will be executed when system is like following?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.6k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    codeartist
    wrote on last edited by
    #1

    I am thinking of creating a software that will have two systems:

    1. Server code and Database
    2. Client code and GUI codes.

    When someone click the login button on my login page. I create a connection and connectToHost(). It gets connected. Then I need to know how can I get the data from database located on server system so that I can show the data on profile page.

    Let suppose I need to retrieve name , address and photo.

    Really need help regarding it!!!

     ************CODE-ARTIST************
    
    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      Since this is such a general question, you should better just work through the normal tutorials available, like the "fortune server example":http://doc-snapshot.qt-project.org/4.8/network-fortuneserver.html and the "fortune client example":http://doc-snapshot.qt-project.org/4.8/network-fortuneclient.html.
      Reading the docs to "QAbstractSocket":http://doc-snapshot.qt-project.org/4.8/qabstractsocket.html will help, too.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        codeartist
        wrote on last edited by
        #3

        Thanks for the reply. However, I am not able to understand how someone can retrieve data from database and present it to client.
        Can you tell me a process and classes to use.

         ************CODE-ARTIST************
        
        1 Reply Last reply
        0
        • D Offline
          D Offline
          DerManu
          wrote on last edited by
          #4

          Through the Qt database classes, e.g. QSqlDatabase, QSqlQuery etc., with the "supported database backend":http://doc.qt.nokia.com/4.7-snapshot/sql-driver.html#supported-databases.

          See the docs of those two classes to see how to use them.

          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