On Fri, Aug 20, 2010 at 11:29 AM, Dmitriy Igrishin <[email protected]> wrote: > Hey, Eric > > Did you tried Wt 3.1.4 ? > > Regards, > Dmitriy > > 2010/8/20 E L <[email protected]> >> >> I'm using 3.1.3 and have a class derived from WTreeView showing a >> WStandardItemModel. >> On a browser refresh, I do model->clear(), then reload the all the items in >> the model from the database. >> >> What is the proper way to reload the model from the database so the >> TreeView still works?
I found my problem. The clear() method is not what I wanted because it also changes the column count and header data. Rather than clear(), I use invisibleRootItem()->setRowCount(0), then load rows from database. Eric ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
