Dear Markus, 2011/2/3 Markus <[email protected]>: > Hello, > > I'm using the latest Wt git version. This simple application crashes: > > > #include <Wt/WStandardItemModel> > > int main() > { > Wt::WStandardItemModel model; > model.setHeaderData(0, Wt::Horizontal, 0); > return 0; > } > > > Is it possible to create a WStandardItemModel with headers but no item > data?
Yes, but a standard item model will not resize itself when accessing a row/column outside its dimensions. You need to first resize your model: model.insertColumns(0, 1); (There should also be a model.insertColumn(0), but, it is implemented in WAbstractItemModel and hidden because of overloading of insertColumn(). I am fixing this in Wt). Regards, koen ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
