Q3CheckListItem Class Reference
|
Константа | Значение |
---|---|
Q3CheckListItem::Off | 0 |
Q3CheckListItem::NoChange | 1 |
Q3CheckListItem::On | 2 |
This enum type specifies a Q3CheckListItem's type:
Константа | Значение |
---|---|
Q3CheckListItem::RadioButton | 0 |
Q3CheckListItem::CheckBox | 1 |
Q3CheckListItem::RadioButtonController | Управляющий объект |
Q3CheckListItem::CheckBoxController | ? |
Constructs a checkable item with parent parent, text text and of type tt. Note that a RadioButton must be the child of a RadioButtonController, otherwise it will not toggle.
Constructs a checkable item with parent parent, which is after after in the parent's list of children, and with text text and of type tt. Note that a RadioButton must be the child of a RadioButtonController, otherwise it will not toggle.
Constructs a checkable item with parent parent, text text and of type tt. Note that this item must not be a RadioButton. Radio buttons must be children of a RadioButtonController.
Constructs a checkable item with parent parent, which is after after in the parent's list of children, with text text and of type tt. Note that this item must not be a RadioButton. Radio buttons must be children of a RadioButtonController.
Constructs a checkable item with parent parent, text text and of type tt. Note that tt must not be RadioButton. Radio buttons must be children of a RadioButtonController.
Constructs a checkable item with parent parent, which is after after in the parent's list of children, with text text and of type tt. Note that tt must not be RadioButton. Radio buttons must be children of a RadioButtonController.
Constructs a RadioButtonController item with parent parent, text text and pixmap p.
Constructs a RadioButtonController item with parent parent, text text and pixmap p.
Destroys the item, and all its children to any depth, freeing up all allocated resources.
Toggle check box or set radio button to on.
Reimplemented from Q3ListViewItem.
Returns true if the item is toggled on; otherwise returns false.
Returns true if the item is tristate; otherwise returns false.
See also setTristate().
Paints the item using the painter p and the color group cg. The item is in column column, has width width and has alignment align. (See Qt::Alignment for valid alignments.)
Reimplemented from Q3ListViewItem.
Draws the focus rectangle r using the color group cg on the painter p.
Reimplemented from Q3ListViewItem.
Returns 1.
Make your derived classes return their own values for rtti(), and you can distinguish between list view items. You should use values greater than 1000, to allow for extensions to this class.
Reimplemented from Q3ListViewItem.
Sets the button on if b is true, otherwise sets it off. Maintains radio button exclusivity.
Смотрите также isOn().
Sets the toggle state of the checklistitem to s. s can be Off, NoChange or On.
Tristate can only be enabled for CheckBox or CheckBoxController, therefore the NoChange only applies to them.
Setting the state to On or Off on a CheckBoxController will recursivly set the states of its children to the same state.
Setting the state to NoChange on a CheckBoxController will make it recursivly recall the previous stored state of its children. If there was no previous stored state the children are all set to On.
Смотрите также state().
Sets tristate to b if the Type is either a CheckBoxController or a CheckBox.
CheckBoxControllers are tristate by default.
See also state() and isTristate().
Returns the state of the item.
See also setState() and Q3CheckListItem::ToggleState.
This virtual function is called when the item changes its state. b is true if the state is On; otherwise the state is Off. NoChange (if tristate is enabled and the type is either CheckBox or CheckBoxController) reports the same as Off, so use state() to determine if the state is actually Off or NoChange.
Возвращает текст элемента.
If this is a RadioButtonController that has RadioButton children, turn off the child that is on.
Returns the type of this item.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Торговые марки | Qt 4.5.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |