Results 1 to 3 of 3

Thread: Clarification about dataChanged

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Clarification about dataChanged

    Hello,

    I need an explanation about dataChanged() and beginInsertRows/endInsertRows().
    I have implemented a model using QAbstractTableModel class and the model is editable; I'm not using setData() method to update the model but my own method that add or update an item to the model.
    Can the method emit dataChanged() when item is inserted or I must use beginInsertRows/endInsertRows?
    Or do both of beginInsertRows and endInsertRows emit dataChanged()?

    Thank you a lot!
    Last edited by airbites; 29th July 2009 at 15:04.

Similar Threads

  1. QAbstractTreeModel & dataChanged()
    By tntcoda in forum Qt Programming
    Replies: 2
    Last Post: 3rd June 2009, 00:12
  2. dataChanged does not re-sort the view
    By alex9099 in forum Qt Programming
    Replies: 2
    Last Post: 5th October 2008, 20:14
  3. questions about datachanged() in model/view programming
    By calmspeaker in forum Qt Programming
    Replies: 1
    Last Post: 8th September 2008, 23:48
  4. need some clarification on QImage and QRgb usage
    By kona in forum Qt Programming
    Replies: 5
    Last Post: 6th September 2008, 14:20

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.