1QCheckTableItem(3qt) QCheckTableItem(3qt)
2
3
4
6 QCheckTableItem - Checkboxes in QTables
7
9 #include <qtable.h>
10
11 Inherits QTableItem.
12
13 Public Members
14 QCheckTableItem ( QTable * table, const QString & txt )
15 virtual void setChecked ( bool b )
16 bool isChecked () const
17 virtual int rtti () const
18
20 The QCheckTableItem class provides checkboxes in QTables.
21
22 A QCheckTableItem is a table item which looks and behaves like a
23 checkbox. The advantage of using QCheckTableItems rather than real
24 checkboxes is that a QCheckTableItem uses far less resources than a
25 real checkbox would in a QTable. When the cell has the focus it
26 displays a real checkbox which the user can interact with. When the
27 cell does not have the focus the cell looks like a checkbox. Pixmaps
28 may not be used in QCheckTableItems.
29
30 QCheckTableItem items have the edit type WhenCurrent (see EditType).
31
32 To change the checkbox's label use setText(). The checkbox can be
33 checked and unchecked with setChecked() and its state retrieved using
34 isChecked().
35
36 To populate a table cell with a QCheckTableItem use QTable::setItem().
37
38 QCheckTableItems can be distinguished from QTableItems and
39 QComboTableItems using their Run Time Type Identification (rtti) value.
40
41 <center>
42 [Image Omitted]
43
44 </center>
45
46 See also rtti(), EditType, QComboTableItem, QTableItem, QCheckBox, and
47 Advanced Widgets.
48
51 Creates a QCheckTableItem with an EditType of WhenCurrent as a child of
52 table. The checkbox is initially unchecked and its label is set to the
53 string txt.
54
56 Returns TRUE if the checkbox table item is checked; otherwise returns
57 FALSE.
58
59 See also setChecked().
60
62 Returns 2.
63
64 Make your derived classes return their own values for rtti()to
65 distinguish between different table item subclasses. You should use
66 values greater than 1000, preferably a large random number, to allow
67 for extensions to this class.
68
69 See also QTableItem::rtti().
70
71 Reimplemented from QTableItem.
72
74 If b is TRUE the checkbox is checked; if b is FALSE the checkbox is
75 unchecked.
76
77 See also isChecked().
78
79
81 http://doc.trolltech.com/qchecktableitem.html
82 http://www.trolltech.com/faq/tech.html
83
85 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
86 license file included in the distribution for a complete license
87 statement.
88
90 Generated automatically from the source code.
91
93 If you find a bug in Qt, please report it as described in
94 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
95 help you. Thank you.
96
97 The definitive Qt documentation is provided in HTML format; it is
98 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
99 web browser. This man page is provided as a convenience for those users
100 who prefer man pages, although this format is not officially supported
101 by Trolltech.
102
103 If you find errors in this manual page, please report them to qt-
104 bugs@trolltech.com. Please include the name of the manual page
105 (qchecktableitem.3qt) and the Qt version (3.3.8).
106
107
108
109Trolltech AS 2 February 2007 QCheckTableItem(3qt)