Results 1 to 4 of 4

Thread: Help needed for Fetching entire database table from server

  1. #1
    Join Date
    Oct 2011
    Location
    India
    Posts
    13
    Thanks
    5
    Qt products
    Qt3 Qt4
    Platforms
    Symbian S60

    Default Help needed for Fetching entire database table from server

    Hello,
    I am trying to connect to the database residing on the local server and fetch entire database table to my application.
    I am able to fetch single strings using QNetworkReply and then reading it into ByteArray using readAll() method of QNetworkReply.
    Can anybody tell me how can I fetch entire database through the same QNetworkReply object?

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Help needed for Fetching entire database table from server

    Why You don't use QSql classes ?

  3. #3
    Join Date
    Oct 2011
    Location
    India
    Posts
    13
    Thanks
    5
    Qt products
    Qt3 Qt4
    Platforms
    Symbian S60

    Default Re: Help needed for Fetching entire database table from server

    hi, Lesiok
    actually I'm retrieving entire contents of datatable on the serverside in a Qstring object through Outputstream object of my servelet file on server.
    so can I display contents of this Qstring object in rows and columns format in widget like for example TableView?
    How is it possible?

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Help needed for Fetching entire database table from server

    You must split this string to the list of rows. I can not help without knowing more about the format of this string.

Similar Threads

  1. HELP NEEDED: HHTPS POST to Apache server fails
    By RoffaBoffa in forum Qt Programming
    Replies: 8
    Last Post: 26th September 2011, 21:08
  2. Replies: 1
    Last Post: 2nd May 2011, 00:56
  3. SQLite plugin - Dump entire table to a label similar.
    By Gavin Harper in forum Qt Programming
    Replies: 5
    Last Post: 23rd August 2010, 10:20
  4. Replies: 1
    Last Post: 9th February 2010, 09:28
  5. Fetching data from table view
    By utkuaydin in forum Newbie
    Replies: 6
    Last Post: 19th January 2010, 07:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.