Results 1 to 9 of 9

Thread: Live Update data in table

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Aug 2009
    Location
    Greece, Chania
    Posts
    63
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanked 11 Times in 11 Posts

    Default Re: Live Update data in table

    If I understood your problem then a stupid solution is to keep a const QString of your initial url ("http://finance.yahoo.com/q?s="), then add a private QString variable that represents the retrieved data to be appended to the initial url.
    Create a function that it's purpose is to retrieve the data you want from the table, let it be the 1st thing to be called in the slot getData(). Create a temp QString that will hold the new url and then pass it to the request.

    Or the moment you insert the new value to the table create the string with the new url, store it as a private member (let's call it m_finalUrlStr) and then in getData(), request.setUrl(QUrl(m_finalUrlStr));
    Misha R.evolution - High level Debugging IDE

    Programming is about 2 basic principles: KISS and RTFM!!!

  2. The following user says thank you to Archimedes for this useful post:

    abghosh (25th February 2010)

Similar Threads

  1. QSqlQueryModel data update
    By psi in forum Qt Programming
    Replies: 4
    Last Post: 20th July 2012, 04:59
  2. SQL slow query - table update
    By lasher in forum Newbie
    Replies: 4
    Last Post: 22nd October 2009, 00:12
  3. Replies: 2
    Last Post: 21st October 2009, 09:13
  4. Replies: 8
    Last Post: 25th February 2008, 18:00
  5. Not corect record pos in data table after update
    By zlatko in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2006, 17:51

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.