Q3CheckListItem Class Reference |
Constant | Value |
---|---|
Q3CheckListItem::Off | 0 |
Q3CheckListItem::NoChange | 1 |
Q3CheckListItem::On | 2 |
This enum type specifies a Q3CheckListItem's type:
Constant | Value |
---|---|
Q3CheckListItem::RadioButton | 0 |
Q3CheckListItem::CheckBox | 1 |
Q3CheckListItem::RadioButtonController | Controller |
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.
See also 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.
See also 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.
Returns the item's text.
If this is a RadioButtonController that has RadioButton children, turn off the child that is on.
Returns the type of this item.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.1 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com