Hi all,

I have implemented a model which has some colmuns as double values which 
are converted to a string and passed to a WStandardItem object. But when 
sorting this column it uses a string sorting order. E.g. it sorts as 
follows:

  17.12
182.24
  19.09
  23.17
240.60
  25.78
  26.91
267.13

How can I tell the WStandardItemModel to sort the strings as double values?

I have tried to overload the data() method used the UserRole for 
returnung a double value for sorting. But this does not work.

Regards,
Stefan

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to