Results 1 to 6 of 6

Thread: class MyReadOnlyTreeModel : public QAbstractItemModel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Feb 2008
    Posts
    6
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: class MyReadOnlyTreeModel : public QAbstractItemModel

    Sorry, I think I have described the problem wrongly again. The problem is not in thread
    synchronization. Let's assume there is one thread only.

    You can take a look at the code attached, and here is what I would like to understand:

    1) After add-new-tree-item or update-an-existing-item in the internal tree, what to emit for
    the corresponding item to let the views know that info about that item has changed.

    2) I have tried many implementations for the model, and hardly can get it right.
    I suspect something is wrong there.

    3) The initial idea was to have a read-only model so that view can't modify it.
    but samples I found on read-only are populating data in the beginning only, not run time.

    4) any blaming to what I have posted, are welcome

    thanks
    Attached Files Attached Files

Similar Threads

  1. Coin3d + Qt: SIGLNALs and SLOTs
    By vonCZ in forum Newbie
    Replies: 26
    Last Post: 15th May 2009, 08:34
  2. class QHBoxLayout
    By csvivek in forum Installation and Deployment
    Replies: 2
    Last Post: 10th April 2008, 08:57
  3. Delayed Rendering of QTabWidget Tabs
    By mclark in forum Qt Tools
    Replies: 13
    Last Post: 14th May 2007, 23:53
  4. link error for visual studio.net 2003
    By berlin in forum Newbie
    Replies: 9
    Last Post: 29th September 2006, 17:06
  5. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 23:04

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.