Project

General

Profile

Actions

Support #1232

closed

WComboBox custom index

Added by Alexander David Cruz Márquez about 12 years ago. Updated almost 12 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...?

Actions #1

Updated by Koen Deforche almost 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

Also available in: Atom PDF