Results 1 to 7 of 7

Thread: Modify model data in QTreeView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2006
    Posts
    788
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    49
    Thanked 48 Times in 46 Posts

    Default Re: Modify model data in QTreeView

    Quote Originally Posted by YuriyRusinov View Post
    That I have to make view classes, which inherits QTreeView ?
    ??? QTreeWidget or QTreeView equal exept model ...
    change the model is not evry time the better way ....
    change the access mode can bring the same result.... only the way is long or briefly...

    IMO: I found access is not long....

  2. #2
    Join Date
    Apr 2006
    Location
    Saint-Petersburg, Russia
    Posts
    63
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Modify model data in QTreeView

    OK, I'll process signal clicked() on QTreeView and make editor events. Thanks.
    Best regards,
    Yuriy Rusinov.

  3. #3
    Join Date
    May 2006
    Posts
    788
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    49
    Thanked 48 Times in 46 Posts

    Default Re: Modify model data in QTreeView

    Quote Originally Posted by YuriyRusinov View Post
    OK, I'll process signal clicked() on QTreeView and make editor events. Thanks.

    If You like grab the first structure from Tree Category

    http://ppk.ciz.ch/win_build/tree_cat_memo/Tree_Cat.zip

    & + the idea of class OneTree you can associate 100 of attribute each single node....



    to test right click and insert node sets...
    this sample code replace on old Nested Sets mysql from an old cms Category manager... same as ....
    http://www.klempert.de/nested_sets/demo/

  4. The following user says thank you to patrik08 for this useful post:

    YuriyRusinov (26th October 2006)

Similar Threads

  1. hierarchical model in a flat view
    By gniking in forum Qt Programming
    Replies: 4
    Last Post: 10th November 2009, 21:17
  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. Model, view, resize to show all data
    By jcr in forum Qt Programming
    Replies: 2
    Last Post: 17th April 2006, 21:59
  4. how to use QTreeView with Database model
    By mikro in forum Newbie
    Replies: 3
    Last Post: 13th April 2006, 17:12
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

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.