Horse sense is the thing that keeps horses from betting on people. --W.C. Fields
Ask Smart Questions
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?
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.
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.
Bookmarks