Results 1 to 5 of 5

Thread: QSqlQueryModel data update

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Nov 2006
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: QSqlQueryModel data update

    I was under the impression that the model classes would monitor the data assigned to them, guess I was wrong. According to what you said, I would just have to use a timer and write something like this?
    Qt Code:
    1. void timerEvent()(
    2. {
    3. mod->select();
    4. }
    To copy to clipboard, switch view to plain text mode 

    Do I need to set the model to refresh the view? Thank you.

    ps. this is very strange..... the above code will actually erase the view (ie. the header columns) for some reason.
    Last edited by psi; 22nd December 2006 at 03:38.

Similar Threads

  1. QTableWidget Update - slow
    By DPinLV in forum Qt Programming
    Replies: 16
    Last Post: 18th August 2006, 22:09
  2. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 13:53
  3. How to convert binary data to hexadecimal data
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 8th March 2006, 17:17
  4. Replies: 16
    Last Post: 7th March 2006, 16:57
  5. Record update windowd entered data saving
    By MarkoSan in forum Qt Programming
    Replies: 56
    Last Post: 18th January 2006, 19:50

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.