Results 1 to 13 of 13

Thread: QTreeWidgetItem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 69 Times in 67 Posts

    Default Re: QTreeWidgetItem

    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  2. #2
    Join Date
    May 2009
    Posts
    94
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    10

    Default Re: QTreeWidgetItem

    I saw QTreeview class but i didn't found anything to add a child of Qtreeview in the runtime. Please let me know is there is any possibility of add a child to the QTreeview dynamically?

  3. #3
    Join Date
    Oct 2009
    Location
    Mexico
    Posts
    81
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    6
    Thanked 10 Times in 10 Posts

    Default Re: QTreeWidgetItem

    you dont need reimplement the QTreeView class.
    you need implement a custom model, and then usiing the model in the QTreeView. this way the lazy population and are in the model not in the view.

    create a custom model is not a easy task, one must take atention to several details. check http://doc.trolltech.com/4.6/model-v...bclassing.html to more info. alsp the Qt example Simple Tree Model http://doc.trolltech.com/4.6/itemvie...treemodel.html

    another tip, check in the source code the implementation of QStringListModel, in my case i found the implemetation of this class very useful. in my system is located in C:/Qt/2009.05/qt/src/gui/itemviews.

  4. #4

    Default Re: QTreeWidgetItem

    anyone else here thinking Qts mvc is utter crap?

    thinking of item views i'd say every byte shifted around less counts. so lets tack some fashnionable design paradigms on top of it to make it real fast.. FAIL.

Similar Threads

  1. The height of QTreeWidgetItem
    By Mad Max in forum Qt Programming
    Replies: 6
    Last Post: 14th May 2013, 05:38
  2. How I add rename in QTreeWidgetItem?
    By rajesh in forum Qt Programming
    Replies: 5
    Last Post: 30th March 2007, 12:10
  3. QTreeWidgetItem ?
    By allensr in forum Qt Programming
    Replies: 5
    Last Post: 3rd January 2007, 17:51
  4. QTreeWidgetItem
    By Sarma in forum Qt Programming
    Replies: 1
    Last Post: 6th April 2006, 19:52
  5. QTreeWidgetItem
    By raphaelf in forum Qt Programming
    Replies: 4
    Last Post: 5th March 2006, 15:07

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.