Actions
Support #1232
closedWComboBox custom index
Start date:
04/12/2012
Due date:
% Done:
0%
Estimated time:
Description
Hi, actually when i set a WStandardModel to a WComboBox, it set as index an autoincrement index value starting on zero. Can I set my own index value from the model so it can be p.e. 1,3,5,7,8,18 or a,b,c,d,e,f,g etc...?
Updated by Koen Deforche over 12 years ago
- Status changed from New to Closed
Hey,
No: index really reflects the position in the list.
But you can use a different role (UserRole) to attach other data to each value.
Regards,
koen
Actions