Project

General

Profile

Actions

Support #1232

closed
AC

WComboBox custom index

Support #1232: WComboBox custom index

Added by Alexander David Cruz Márquez over 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Target version:
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...?

KD Updated by Koen Deforche about 14 years ago Actions #1

  • 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

Also available in: PDF Atom