Results 1 to 3 of 3

Thread: Refreshing QTableView data without resetting whole view

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    79
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Refreshing QTableView data without resetting whole view

    I have another problem, that I try to solve for a while now, but without (real) success.

    Let's assume we have QTableView that is populated by QSqlQueryModel data. Now when I change some data inside model, I want to refresh view too. If I do this with running setQuery again, then view does refresh itself, but(!) the whole view also resets itself. This is really annoying if user looks at a long table, and for example has one row selected. When view refreshes, his selection is gone and he must go looking for that particular row again. So I would need to refresh view without resetting the whole thing. How do I do that?
    Last edited by Tiansen; 1st February 2014 at 21:46.

Similar Threads

  1. refreshing QSqlRelationalDelegate data
    By darksaga in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2010, 00:54
  2. Get data from a QTableView
    By graciano in forum Qt Programming
    Replies: 3
    Last Post: 19th January 2010, 15:31
  3. Insert data to QTableView
    By Lodhart in forum Qt Programming
    Replies: 1
    Last Post: 23rd April 2009, 09:38
  4. Replies: 3
    Last Post: 29th January 2009, 08:38
  5. QTableView not refreshing
    By steg90 in forum Qt Programming
    Replies: 4
    Last Post: 8th May 2007, 19:37

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.