The QCheckListItem class implements checkable list view items. More...
#include <qlistview.h>
Inherits QListViewItem.
There are three types of check list items: CheckBox, RadioButton and Controller.
Checkboxes may be inserted at top level in the list view. A radio button must be child of a controller.
RadioButton
-
CheckBox
-
Controller
-
Constructs a checkable item with parent parent, text text and type tt. Note that tt must not be RadioButton, if so it will not toggle.
Constructs a Controller item with parent parent, text text and pixmap p.
Constructs a checkable item with parent parent, text text and type tt. Note that this item must not be a a RadioButton. Radio buttons must be children on a Controller.
Constructs a Controller item with parent parent, text text and pixmap p.
Constructs a checkable item with parent parent, text text and type tt. Note that a RadioButton must be child of a Controller, otherwise it will not toggle.
[virtual protected]
Toggle checkbox, or set radio button on.
Reimplemented from QListViewItem.
Retuns whether the item is enabled or disabled.
See also setEnabled().
Returns TRUE if this item is toggled on, FALSE otherwise.
[virtual protected]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QListViewItem.
[virtual]
Paints this item.
Reimplemented from QListViewItem.
[virtual]
Draws the focus rectangle.
Enables/Disables the item depending on what you pass as b parameter. If the item is disabled, the user can't change the state (see setOn()/isOn()) of the item.
[virtual]
Sets this button on if b is TRUE, off otherwise. Maintains radio button exclusivity.
[virtual]
Performs setup.
Reimplemented from QListViewItem.
[virtual protected]
This virtual function is called when the item changes its on/off state.
Returns the text of this item.
[virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QListViewItem.
[protected]
If this is a Controller that has RadioButton children, turn off the child that is on.
Returns the type of this item.
[virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QListViewItem.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.
Copyright İ 2000 Trolltech | Trademarks | Qt version 2.2.1
|