tag:blogger.com,1999:blog-14883822.post2420988257487598478..comments2024-01-05T02:32:21.981-06:00Comments on Ed Page: Porting ejpi: Tree Models in QtAnonymoushttp://www.blogger.com/profile/14704668441707649581noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-14883822.post-117189632571180322010-08-16T07:32:03.312-05:002010-08-16T07:32:03.312-05:00I'd also point out that later I noticed the wa...I'd also point out that later I noticed the way to override drawing for these things is through delegates. I think I still prefer GTK's cell renderer approach though but that is without having looked much at how to do a delegateAnonymoushttps://www.blogger.com/profile/14704668441707649581noreply@blogger.comtag:blogger.com,1999:blog-14883822.post-25111507240199372892010-07-30T08:52:14.385-05:002010-07-30T08:52:14.385-05:00Hi,
QAbstractItemModel (and friends) aren't r...Hi,<br /><br />QAbstractItemModel (and friends) aren't really that hard to understand once you play around some.<br /><br />Simply put, they're just an API you use to provide an interface to data, you have to write the actual storage bits yourself, whether that's a QList or whatever else. This (of course) means there is no restriction on what you actually store, and how you store it.<br /><br />A simple example tutorial I've written might be of use: http://blog.rburchell.com/2010/02/pyside-tutorial-model-view-programming_22.html<br /><br />This doesn't use QAIM directly (it's just a list, and obviously, lists are simpler), but it should help you understand the general concepts.<br /><br />I'm happy to answer questions if you've got any, you can find me as w00t (or w00t_) on #qt on irc.freenode.net - there's plenty of other helpful folks there, too.Anonymousnoreply@blogger.com