The List class inherits QListView Qt class.
Widget's input value
The input value of the List widget is an XML string in the form :
<list> <row>Item 1</row> <row>Item 2</row> ... </list>
Warning | |
---|---|
Unlike the example, the XML input value must not contain spaces between tags. |
The following attributes can be specified globally in the list tag, or individually in the row tag :
The following attributes can be specified in the row tag :
Widget's attributes
Widget's functions
Widget's signals
Widget's output value
The output value of a List widget depends on two attributes : verbose and return.
If return is dict, the output value is a dict in the form {ITEM_1_ID:ITEM_1_VALUE, ITEM_2_ID:ITEM_2_VALUE, ..., ITEM_n_ID:ITEM_n_VALUE} where ITEM_ID is the id of the item and ITEM_VALUE is a dict in the form {'value':TEXT, 'row':INDEX, 'selected':BOOL, 'checked':BOOL, 'data':DATA}.
If return is list, the output value is a list of items values. Each item's value is a dict in the form : {'id':ID, 'value':TEXT, 'row':INDEX, 'selected':BOOL, 'checked':BOOL, 'data':DATA}
If verbose is True all items are returned otherwise only selected items are returned.