Results 1 to 6 of 6

Thread: How to update items in a QTreeView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to update items in a QTreeView

    I didn't say setData() should be called directly, but only that it could be called directly (by someone), since it is a public part of your model's api. And if someone should do that, you need to emit dataChanged() there - otherwise the view's won't reflect the change if made (only) via setData().

    HTH

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

    laugusti (12th August 2009)

Similar Threads

  1. QcomboBox update QTreeView
    By josiah47 in forum Newbie
    Replies: 2
    Last Post: 5th March 2009, 23:32
  2. QTreeView and expandable items
    By SiLiZiUMM in forum Qt Programming
    Replies: 6
    Last Post: 29th April 2008, 13:21
  3. Edit items on QTreeView + QDirModel
    By junior0007 in forum Qt Programming
    Replies: 4
    Last Post: 23rd November 2007, 07:16
  4. How to update scene after removing items
    By nileshsince1980 in forum Qt Programming
    Replies: 4
    Last Post: 20th September 2007, 09:56
  5. Drag & drop items on the same QTreeView
    By wind in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2006, 14:29

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.