I think you model is not initialized

Wt::WStandardItemModel model = new Wt::WStandardItemModel(this);
and then do setting header.

Hope this helps
Also you need to post on forums not on mailing list
http://redmine.emweb.be/projects/wt/boards/2

On Thu, Feb 3, 2011 at 4:19 PM, Markus <[email protected]> wrote:

> 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?
>
> -Markus Rinne
>
>
> ------------------------------------------------------------------------------
> 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
>



-- 
Rashad
------------------------------------------------------------------------------
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

Reply via email to