Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

qchecktableitem(3qt) [redhat man page]

QCheckTableItem(3qt)													      QCheckTableItem(3qt)

NAME
QCheckTableItem - Checkboxes in QTables SYNOPSIS
#include <qtable.h> Inherits QTableItem. Public Members QCheckTableItem ( QTable * table, const QString & txt ) virtual void setChecked ( bool b ) bool isChecked () const virtual int rtti () const DESCRIPTION
The QCheckTableItem class provides checkboxes in QTables. A QCheckTableItem is a table item which looks and behaves like a checkbox. The advantage of using QCheckTableItems rather than real checkboxes is that a QCheckTableItem uses far less resources than a real checkbox would in a QTable. When the cell has the focus it displays a real checkbox which the user can interact with. When the cell does not have the focus the cell looks like a checkbox. Pixmaps may not be used in QCheckTableItems. QCheckTableItem items have the edit type WhenCurrent (see EditType). To change the checkbox's label use setText(). The checkbox can be checked and unchecked with setChecked() and its state retrieved using isChecked(). To populate a table cell with a QCheckTableItem use QTable::setItem(). QCheckTableItems can be distinguished from QTableItems and QComboTableItems using their Run Time Type Identification (rtti) value. <center> [Image Omitted] </center> See also rtti(), EditType, QComboTableItem, QTableItem, QCheckBox, and Advanced Widgets. MEMBER FUNCTION DOCUMENTATION
QCheckTableItem::QCheckTableItem ( QTable * table, const QString & txt ) Creates a QCheckTableItem with an EditType of WhenCurrent as a child of table. The checkbox is initially unchecked and its label is set to the string txt. bool QCheckTableItem::isChecked () const Returns TRUE if the checkbox table item is checked; otherwise returns FALSE. See also setChecked(). int QCheckTableItem::rtti () const [virtual] Returns 2. Make your derived classes return their own values for rtti()to distinguish between different table item subclasses. You should use values greater than 1000, preferably a large random number, to allow for extensions to this class. See also QTableItem::rtti(). Reimplemented from QTableItem. void QCheckTableItem::setChecked ( bool b ) [virtual] If b is TRUE the checkbox is checked; if b is FALSE the checkbox is unchecked. See also isChecked(). SEE ALSO
http://doc.trolltech.com/qchecktableitem.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qchecktableitem.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QCheckTableItem(3qt)

Check Out this Related Man Page

QCheckListItem(3qt)													       QCheckListItem(3qt)

NAME
QCheckListItem - Checkable list view items SYNOPSIS
#include <qlistview.h> Inherits QListViewItem. Public Members enum Type { RadioButton, CheckBox, Controller } QCheckListItem ( QCheckListItem * parent, const QString & text, Type tt = Controller ) QCheckListItem ( QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = Controller ) QCheckListItem ( QListViewItem * parent, const QString & text, Type tt = Controller ) QCheckListItem ( QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = Controller ) QCheckListItem ( QListView * parent, const QString & text, Type tt = Controller ) QCheckListItem ( QListView * parent, QListViewItem * after, const QString & text, Type tt = Controller ) QCheckListItem ( QListViewItem * parent, const QString & text, const QPixmap & p ) QCheckListItem ( QListView * parent, const QString & text, const QPixmap & p ) ~QCheckListItem () virtual void paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ) virtual void paintFocus ( QPainter * p, const QColorGroup & cg, const QRect & r ) virtual void setOn ( bool b ) bool isOn () const Type type () const QString text () const virtual int rtti () const Protected Members virtual void activate () void turnOffChild () virtual void stateChange ( bool ) DESCRIPTION
The QCheckListItem class provides checkable list view items. QCheckListItems are used in QListViews to provide QListViewItems that are checkboxes, radio buttons or controllers. Checkbox and controller check list items may be inserted at any level in a list view. Radio button check list items must be children of a controller check list item. The item can be checked or unchecked with setOn(). Its type can be retrieved with type() and its text retrieved with text(). <center> [Image Omitted] </center> See also QListViewItem, QListView, and Advanced Widgets. Member Type Documentation QCheckListItem::Type This enum type specifies a QCheckListItem's type: QCheckListItem::RadioButton QCheckListItem::CheckBox QCheckListItem::Controller MEMBER FUNCTION DOCUMENTATION
QCheckListItem::QCheckListItem ( QCheckListItem * parent, const QString & text, Type tt = Controller ) Constructs a checkable item with parent parent, text text and type tt. Note that a RadioButton must be the child of a Controller, otherwise it will not toggle. QCheckListItem::QCheckListItem ( QCheckListItem * parent, QListViewItem * after, const QString & text, Type tt = Controller ) Constructs a checkable item with parent parent, which is after after in the parent's list of children, text text and type tt. . Note that a RadioButton must be the child of a Controller, otherwise it will not toggle. QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, Type tt = Controller ) Constructs a checkable item with parent parent, text text and type tt. Note that this item must not be a RadioButton. Radio buttons must be children of a Controller. QCheckListItem::QCheckListItem ( QListViewItem * parent, QListViewItem * after, const QString & text, Type tt = Controller ) Constructs a checkable item with parent parent, which is after after in the parent's list of children, text text and type tt. Note that this item must not be a RadioButton. Radio buttons must be children of a Controller. QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, Type tt = Controller ) Constructs a checkable item with parent parent, text text and type tt. Note that tt must not be RadioButton. Radio buttons must be children of a Controller. QCheckListItem::QCheckListItem ( QListView * parent, QListViewItem * after, const QString & text, Type tt = Controller ) Constructs a checkable item with parent parent, which is after after in the parent's list of children, text text and type tt. Note that tt must not be RadioButton. Radio buttons must be children of a Controller. QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, const QPixmap & p ) Constructs a Controller item with parent parent, text text and pixmap p. QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, const QPixmap & p ) Constructs a Controller item with parent parent, text text and pixmap p. QCheckListItem::~QCheckListItem () Destroys the item, deleting all its children, freeing up all allocated resources. void QCheckListItem::activate () [virtual protected] Toggle check box or set radio button to on. Reimplemented from QListViewItem. bool QCheckListItem::isOn () const Returns TRUE if the item is toggled on; otherwise returns FALSE. void QCheckListItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ) [virtual] 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::AlignmentFlags for valid alignments.) Reimplemented from QListViewItem. void QCheckListItem::paintFocus ( QPainter * p, const QColorGroup & cg, const QRect & r ) [virtual] Draws the focus rectangle r using the color group cg on the painter p. Reimplemented from QListViewItem. int QCheckListItem::rtti () const [virtual] Returns 1. Make your derived classes return their own values for rtti(), and you can distinguish between listview items. You should use values greater than 1000, preferably a large random number, to allow for extensions to this class. Reimplemented from QListViewItem. void QCheckListItem::setOn ( bool b ) [virtual] Sets the button on if b is TRUE, otherwise sets it off. Maintains radio button exclusivity. void QCheckListItem::stateChange ( bool ) [virtual protected] This virtual function is called when the item changes its on/off state. QString QCheckListItem::text () const Returns the text of the item. void QCheckListItem::turnOffChild () [protected] If this is a Controller that has RadioButton children, turn off the child that is on. Type QCheckListItem::type () const Returns the type of this item. SEE ALSO
http://doc.trolltech.com/qchecklistitem.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qchecklistitem.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QCheckListItem(3qt)
Man Page