📄 qchecklistitem.3qt
字号:
.TH QCheckListItem 3qt "6 July 1999" "Troll Tech AS" \" -*- nroff -*-.\" Copyright 1992-1999 Troll Tech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQCheckListItem \- Implements checkable list view items.SH SYNOPSIS.br.PP\fC#include <qlistview.h>\fR.PPInherits QListViewItem..PP.SS "Public Members".in +1c.ti -1c.BI "enum \fBType\fR { RadioButton, CheckBox, Controller }".br.ti -1c.BI "\fBQCheckListItem\fR ( QCheckListItem * " "parent" ", const QString & " "text" ", Type = Controller )".br.ti -1c.BI "\fBQCheckListItem\fR ( QListViewItem * " "parent" ", const QString & " "text" ", Type = Controller )".br.ti -1c.BI "\fBQCheckListItem\fR ( QListView * " "parent" ", const QString & " "text" ", Type = Controller )".br.ti -1c.BI "\fBQCheckListItem\fR ( QListViewItem * " "parent" ", const QString & " "text" ", const QPixmap & )".br.ti -1c.BI "\fBQCheckListItem\fR ( QListView * " "parent" ", const QString & " "text" ", const QPixmap & )".br.ti -1c.BI "virtual void \fBpaintCell\fR ( QPainter *, const QColorGroup & " "cg" ", int " "column" ", int " "width" ", int alignment )".br.ti -1c.BI "virtual void \fBpaintFocus\fR ( QPainter *, const QColorGroup & " "cg" ", const QRect & r )".br.ti -1c.BI "virtual int \fBwidth\fR ( const QFontMetrics &, const QListView *, int column ) const".br.ti -1c.BI "virtual void \fBsetup\fR ()".br.ti -1c.BI "virtual void \fBsetOn\fR ( bool )".br.ti -1c.BI "bool \fBisOn\fR () const".br.ti -1c.BI "Type \fBtype\fR () const".br.ti -1c.BI "QString \fBtext\fR () const".br.ti -1c.BI "virtual QString \fBtext\fR ( int n ) const".br.in -1c.SS "Protected Members".in +1c.ti -1c.BI "virtual void \fBpaintBranches\fR ( QPainter * " "p" ", const QColorGroup & " "cg" ", int " "w" ", int " "y" ", int " "h" ", GUIStyle s )".br.ti -1c.BI "virtual void \fBactivate\fR ()".br.ti -1c.BI "void \fBturnOffChild\fR ()".br.ti -1c.BI "virtual void \fBstateChange\fR ( bool )".br.in -1c.SH DESCRIPTIONThe QCheckListItem class implements checkable list view items..PPThere are three types of check list items: CheckBox, RadioButton and Controller..PPCheckboxes may be inserted at top level in the list view. A radio button must be child of a controller..SH MEMBER FUNCTION DOCUMENTATION.SH "QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, Type tt = Controller )"Constructs a checkable item with parent \fIparent,\fR text \fItext\fR and type \fItt.\fR Note that \fItt\fR must not be RadioButton, if so it will not toggle..SH "QCheckListItem::QCheckListItem ( QListView * parent, const QString & text, const QPixmap & p )"Constructs a Controller item with parent \fIparent,\fR text \fItext\fR and pixmap \fIp.\fR.SH "QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, Type tt = Controller )"Constructs a checkable item with parent \fIparent,\fR text \fItext\fR and type \fItt.\fR Note that this item must not be a a RadioButton. Radio buttons must be children on a Controller..SH "QCheckListItem::QCheckListItem ( QListViewItem * parent, const QString & text, const QPixmap & p )"Constructs a Controller item with parent \fIparent,\fR text \fItext\fR and pixmap \fIp.\fR.SH "QCheckListItem::QCheckListItem ( QCheckListItem * parent, const QString & text, Type tt = Controller )"Constructs a checkable item with parent \fIparent,\fR text \fItext\fR and type \fItt.\fR Note that a RadioButton must be child of a Controller, otherwise it will not toggle..SH "void QCheckListItem::activate () \fC[virtual protected]\fR"Toggle checkbox, or set radio button on..PPReimplemented from QListViewItem..SH "bool QCheckListItem::isOn () const"Returns TRUE if this item is toggled on, FALSE otherwise..SH "void QCheckListItem::paintBranches ( QPainter * p, const QColorGroup & cg, int w, int, int h, GUIStyle ) \fC[virtual protected]\fR"Fills the rectangle. No decoration is drawn..PPReimplemented from QListViewItem..SH "void QCheckListItem::paintCell ( QPainter * p, const QColorGroup & cg, int column, int width, int align ) \fC[virtual]\fR"Paints this item..PPReimplemented from QListViewItem..SH "void QCheckListItem::paintFocus ( QPainter * p, const QColorGroup & cg, const QRect & r ) \fC[virtual]\fR"Draws the focus rectangle..SH "void QCheckListItem::setOn ( bool b ) \fC[virtual]\fR"Sets this button on if \fIb\fR is TRUE, off otherwise. Maintains radio button exclusivity..SH "void QCheckListItem::setup () \fC[virtual]\fR"Performs setup..PPReimplemented from QListViewItem..SH "void QCheckListItem::stateChange ( bool ) \fC[virtual protected]\fR"This virtual function is called when the item changes its on/off state..SH "QString QCheckListItem::text () const"Returns the text of this item..SH "QString QCheckListItem::text ( int n ) const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QListViewItem..SH "void QCheckListItem::turnOffChild () \fC[protected]\fR"If this is a Controller that has RadioButton children, turn off thechild that is on..SH "SEE ALSO".BR http://www.troll.no/qt/qchecklistitem.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS. See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -