DAZ Script | |
---|---|
Number | count |
Number | currentItem |
String | currentText |
InsertPolicy | insertPolicy |
Number | maxVisibleItems |
Number | minimumContentsLength |
SizeAdjustPolicy | sizeAdjustPolicy |
DAZ Script |
---|
DzComboBox ( DzWidget parent ) |
DAZ Script | |
---|---|
void | addItem ( String text, String userData=“” ) |
void | addItems ( Array texts ) |
void | clear () |
Number | findData ( String data ) |
Number | findText ( String text ) |
void | insertItem ( Number index, String text, String userData=“” ) |
void | insertItems ( Number index, Array list ) |
void | insertSeparator ( Number index ) |
String | itemData ( Number index ) |
String | itemText ( Number index ) |
void | removeItem ( Number index ) |
void | setItemData ( Number index, String value ) |
void | setItemText ( Number index, String text ) |
Deprecated | |
void | insertItem ( String text ) |
String | text ( Number index ) |
void | activated ( Number index ) |
void | currentIndexChanged ( Number index ) |
void | highlighted ( Number index ) |
void | textChanged ( String text ) |
Deprecated | |
---|---|
void | activated ( String text ) |
void | currentIndexChanged ( String text ) |
void | highlighted ( String text ) |
Provides a means of presenting a list of options to the user in a way that takes up the minimum amount of screen space.
TODO: Add description.
—–
TODO: Add description.
Holds the number of items in the combobox. (Read Only)
Holds the index of the currently selected item in the combobox.
Holds the text of the currently selected item in the combobox.
InsertPolicy : insertPolicy
Holds the policy used to determine where user-inserted items should appear in the combobox.
Since:
Holds the maximum number of items allowed on screen; 10 by default.
Since:
Number : minimumContentsLength
Holds the minimum number of characters that should fit in the combobox.
Since:
SizeAdjustPolicy : sizeAdjustPolicy
Holds the policy describing how the size of the combobox changes when the content changes.
Since:
DzComboBox( DzWidget parent )
Creates a combobox as a child of the given parent widget.
Parameter(s):
void : addItem( String text, String userData=“” )
Adds text
to the list of items in the combobox.
Since:
void : addItems( Array texts )
Adds each of the strings in texts
to the combobox
Since:
void : clear()
Removes all items from the combobox.
Number : findData( String data )
Return Value:
data
; otherwise returns -1.Since:
Number : findText( String text )
Return Value:
text
; otherwise returns -1.Since:
void : insertItem( Number index, String text, String userData=“” )
Inserts the text
and userData
into the combobox at index
. If index
is equal to or higher than the total number of items, the new item is appended to the list of existing items. If index
is zero or negative, the new item is prepended to the list of existing items.
Since:
void : insertItems( Number index, Array list )
Inserts the strings in list
into the combobox as separate items, starting at index
.
Since:
void : insertSeparator( Number index )
Inserts a separator into the combobox at index
.
Since:
String : itemData( Number index )
Return Value:
index
.Since:
String : itemText( Number index )
Return Value:
index
.Since:
void : removeItem( Number index )
Removes the item at index
from the list of items.
void : setItemData( Number index, String value )
Sets the data for the item at index
.
Since:
void : setItemText( Number index, String text )
Sets the text for the item at index
.
Since:
void : insertItem( String text )
Deprecated
Exists only to keep old code working. Do not use in new code. Use addItem() instead.
Deprecated
Exists only to keep old code working. Do not use in new code. Use itemText() instead.
void : activated( Number index )
Signature:“activated(int)”
Emitted when an item is selected.
Parameter(s):
void : currentIndexChanged( Number index )
Signature:“currentIndexChanged(int)”
Emitted when the current index changes.
Parameter(s):
Since:
void : highlighted( Number index )
Signature:“highlighted(int)”
Emitted when the highlighted item changes.
Parameter(s):
void : textChanged( String text )
Signature:“textChanged(const QString&)”
Emitted when the text of the box changes, passes the new text of the box.
void : activated( String text )
Signature:“activated(const QString&)”
Deprecated
Exists only to keep old code working. Do not use in new code.
Emitted when an item is selected.
Parameter(s):
void : currentIndexChanged( String text )
Signature:“currentIndexChanged(const QString&)”
Deprecated
Exists only to keep old code working. Do not use in new code.
Emitted when the current index changes.
Parameter(s):
Since:
void : highlighted( String text )
Signature:“highlighted(const QString&)”
Deprecated
Exists only to keep old code working. Do not use in new code.
Emitted when the highlighted item changes.
Parameter(s):