◆ QTableWidget() [1/2]
◆ QTableWidget() [2/2]
QTableWidget |
( |
long |
handle | ) |
|
◆ clear()
在文件 QTableWidget.xcsm 第 129 行定义.
129 {
130 QtXnl.widget_slot(nativehandle, Constant.TABLECLEAR);
131 }
◆ clearContent()
在文件 QTableWidget.xcsm 第 132 行定义.
132 {
133 QtXnl.widget_slot(nativehandle,Constant. TABLECLEARCONTENT);
134 }
◆ clearSpans()
在文件 QTableWidget.xcsm 第 270 行定义.
270 {
271 QtXnl.widget_slot(nativehandle, Constant.QTV_CLEARSPANS);
272 }
◆ columnAt()
在文件 QTableWidget.xcsm 第 213 行定义.
213 {
214 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_COLUMNAT, x, 0);
215 }
◆ columnCount()
在文件 QTableWidget.xcsm 第 38 行定义.
38 {
39 return QtXnl.widget_get_int_value(nativehandle, Constant.QTABLEWIDGET_COLCOUNT);
40 }
◆ columnSpan()
int columnSpan |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
在文件 QTableWidget.xcsm 第 267 行定义.
267 {
268 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_COLUMNSPAN, row, column);
269 }
◆ columnViewportPosition()
int columnViewportPosition |
( |
int |
column | ) |
|
在文件 QTableWidget.xcsm 第 210 行定义.
210 {
211 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_COLUMNVIEWPORTPOSITION, column, 0);
212 }
◆ columnWidth()
int columnWidth |
( |
int |
column | ) |
|
在文件 QTableWidget.xcsm 第 219 行定义.
219 {
220 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_COLUMNWIDTH, column, 0);
221 }
◆ create() [1/2]
◆ create() [2/2]
bool create |
( |
@NotNilptr QWidget |
parent | ) |
|
|
override |
重载 QWidget .
在文件 QTableWidget.xcsm 第 22 行定义.
22 {
23 nativehandle = QtXnl.createQObject(QType.qtTableWidget,
this, parent.nativehandle);
24 if (nativehandle == 0){
25 return false;
26 }
27 return true;
28 }
◆ currentColumn()
在文件 QTableWidget.xcsm 第 55 行定义.
55 {
56 return QtXnl.widget_get_int_value(nativehandle, Constant.QTABLEWIDGET_CURCOL);
57 }
◆ currentRow()
在文件 QTableWidget.xcsm 第 51 行定义.
51 {
52 return QtXnl.widget_get_int_value(nativehandle, Constant.QTABLEWIDGET_CURROW);
53 }
◆ getCellWidget()
QWidget getCellWidget |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
在文件 QTableWidget.xcsm 第 183 行定义.
183 {
184 return (QWidget)QtXnl.object_get_handle2(nativehandle, Constant.TABLEGETCELLWIDGET, x, y);
185 }
◆ getItem()
long getItem |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
在文件 QTableWidget.xcsm 第 138 行定义.
138 {
139 return QtXnl.object_get_long_int(nativehandle,Constant. TABLEGETITEM, row, column);
140 }
◆ getItemFlags()
int getItemFlags |
( |
long |
item | ) |
|
在文件 QTableWidget.xcsm 第 175 行定义.
175 {
176 return QtXnl.widget_get_int_value(item, Constant.TABITEMGETFLAG);
177 }
◆ getItemText()
String getItemText |
( |
long |
item | ) |
|
在文件 QTableWidget.xcsm 第 126 行定义.
126 {
127 return (
String)QtXnl.core_getStringlongint(item, Constant.TABLEGETTEXTBYITEM, 0, 0);
128 }
◆ getSelectedItems()
long [] getSelectedItems |
( |
| ) |
|
在文件 QTableWidget.xcsm 第 135 行定义.
135 {
136 return (long[])QtXnl.widget_get_object(nativehandle, Constant.TABLEGETSELITEM);
137 }
◆ getSelectedRanges()
QRect [] getSelectedRanges |
( |
| ) |
|
在文件 QTableWidget.xcsm 第 141 行定义.
141 {
142 long [] rs = (long[])QtXnl.widget_get_object(nativehandle, Constant.TABLEGETSELRANGE);
143 if (rs != nilptr){
144 QRect []rgs = new QRect[rs.length / 2];
145
146 for (long i =0, c = rgs.length; i < c; i++){
147 QRect r = new QRect((int)(rs[i * 2] >> 32) & 0xffffffff, (int)(rs[i * 2 + 1] >> 32) & 0xffffffff, (int)rs[i * 2] & 0xffffffff, (int)rs[i * 2 + 1] & 0xffffffff);
148 rgs[i] = r;
149 }
150
151 return rgs;
152 }
153 return nilptr;
154 }
◆ getTag()
在文件 QTableWidget.xcsm 第 83 行定义.
83 {
84 return QtXnl.object_get_long_int(0,Constant. TABLEGETTAG, item, 0);
85 }
◆ getText()
String getText |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
在文件 QTableWidget.xcsm 第 123 行定义.
123 {
124 return (
String)QtXnl.core_getStringlongint(nativehandle, Constant.TABLEGETTEXTBYRC, x, y);
125 }
◆ gridStyle()
在文件 QTableWidget.xcsm 第 243 行定义.
243 {
244 return (PenStyle)QtXnl.widget_get_int_value(nativehandle, Constant.QTV_GRIDSTYLE);
245 }
◆ horizontalHeader()
QHeaderView horizontalHeader |
( |
| ) |
|
在文件 QTableWidget.xcsm 第 191 行定义.
191 {
192 return (QHeaderView)QtXnl.widget_get_object(nativehandle, Constant.QTW_HORIZONTALHEADER);
193 }
◆ isColumnHidden()
bool isColumnHidden |
( |
int |
column | ) |
|
在文件 QTableWidget.xcsm 第 228 行定义.
228 {
229 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_ISCOLUMNHIDDEN, column, 0) != 0;
230 }
◆ isCornerButtonEnabled()
bool isCornerButtonEnabled |
( |
| ) |
|
在文件 QTableWidget.xcsm 第 258 行定义.
258 {
259 return QtXnl.widget_get_bool_value(nativehandle, Constant.QTV_ISCORNERBUTTONENABLED);
260 }
◆ isItemCheck()
bool isItemCheck |
( |
long |
item | ) |
|
在文件 QTableWidget.xcsm 第 171 行定义.
171 {
172 return QtXnl.widget_get_int_bool(item, Constant.TABITEMGETCHECK, 0);
173 }
◆ isRowHidden()
bool isRowHidden |
( |
int |
row | ) |
|
在文件 QTableWidget.xcsm 第 222 行定义.
222 {
223 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_ISROWHIDDEN, row, 0) != 0;
224 }
◆ isSortingEnabled()
bool isSortingEnabled |
( |
| ) |
|
在文件 QTableWidget.xcsm 第 237 行定义.
237 {
238 return QtXnl.widget_get_bool_value(nativehandle, Constant.QTV_ISSORTINGENABLED);
239 }
◆ modifyItemFlags()
void modifyItemFlags |
( |
long |
item, |
|
|
int |
add, |
|
|
int |
remove |
|
) |
| |
在文件 QTableWidget.xcsm 第 75 行定义.
75 {
76 QtXnl.widget_set_v2int_value(item, Constant.TABLEITEMFLAG, add, remove);
77 }
◆ removeColumn()
void removeColumn |
( |
int |
n | ) |
|
在文件 QTableWidget.xcsm 第 67 行定义.
67 {
68 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLEREMOVECOLUMN, n);
69 }
◆ removeRow()
在文件 QTableWidget.xcsm 第 59 行定义.
59 {
60 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLEREMOVEROW, n);
61 }
◆ resizeHHSection()
void resizeHHSection |
( |
int |
row, |
|
|
int |
size |
|
) |
| |
在文件 QTableWidget.xcsm 第 111 行定义.
111 {
112 QtXnl.widget_set_v2int_value(nativehandle, Constant.TABLESETHHRS, row, size);
113 }
◆ rowAt()
在文件 QTableWidget.xcsm 第 201 行定义.
201 {
202 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_ROWAT, y, 0);
203 }
◆ rowCount()
在文件 QTableWidget.xcsm 第 47 行定义.
47 {
48 return QtXnl.widget_get_int_value(nativehandle, Constant.QTABLEWIDGET_ROWCOUNT);
49 }
◆ rowHeight()
在文件 QTableWidget.xcsm 第 207 行定义.
207 {
208 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_ROWHEIGHT, row, 0);
209 }
◆ rowSpan()
int rowSpan |
( |
int |
row, |
|
|
int |
column |
|
) |
| |
在文件 QTableWidget.xcsm 第 264 行定义.
264 {
265 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_ROWSPAN, row, column);
266 }
◆ rowViewportPosition()
int rowViewportPosition |
( |
int |
row | ) |
|
override
在文件 QTableWidget.xcsm 第 198 行定义.
198 {
199 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_ROWVIEWPORTPOSITION, row, 0);
200 }
◆ selectRow()
在文件 QTableWidget.xcsm 第 71 行定义.
71 {
72 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLESELECTROW, n);
73 }
◆ setCellWidget()
void setCellWidget |
( |
int |
x, |
|
|
int |
y, |
|
|
@NotNilptr QWidget |
w |
|
) |
| |
在文件 QTableWidget.xcsm 第 179 行定义.
179 {
180 QtXnl.widget_set_intlongint_value(nativehandle, Constant.TABLESETCELLWIDGET, w.nativehandle, x, y);
181 }
◆ setColumnCount()
void setColumnCount |
( |
int |
c | ) |
|
在文件 QTableWidget.xcsm 第 34 行定义.
34 {
35 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLESETCOLUMNCNT, c);
36 }
◆ setColumnHidden()
void setColumnHidden |
( |
int |
column, |
|
|
bool |
hide |
|
) |
| |
在文件 QTableWidget.xcsm 第 231 行定义.
231 {
232 QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_SETCOLUMNHIDDEN, column, hide ? 1 : 0);
233 }
◆ setColumnWidth()
void setColumnWidth |
( |
int |
column, |
|
|
int |
width |
|
) |
| |
在文件 QTableWidget.xcsm 第 216 行定义.
216 {
217 QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_SETCOLUMNWIDTH, column, width);
218 }
◆ setCornerButtonEnabled()
void setCornerButtonEnabled |
( |
bool |
enable | ) |
|
在文件 QTableWidget.xcsm 第 255 行定义.
255 {
256 QtXnl.widget_set_bool_value(nativehandle, Constant.QTV_SETCORNERBUTTONENABLED, enable);
257 }
◆ setEditTriggers()
void setEditTriggers |
( |
int |
et | ) |
|
在文件 QTableWidget.xcsm 第 108 行定义.
108 {
109 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLESETET, et);
110 }
◆ setGridStyle()
void setGridStyle |
( |
PenStyle |
style | ) |
|
在文件 QTableWidget.xcsm 第 246 行定义.
246 {
247 QtXnl.widget_set_vint_value(nativehandle, Constant.QTV_SETGRIDSTYLE, style);
248 }
◆ setHHColumns()
void setHHColumns |
( |
String [] |
columns | ) |
|
在文件 QTableWidget.xcsm 第 117 行定义.
117 {
118 QtXnl.widget_set_object_value(nativehandle, Constant.SETTABHHCOLUMNS, columns);
119 }
◆ setHHFixedHeight()
void setHHFixedHeight |
( |
int |
h | ) |
|
在文件 QTableWidget.xcsm 第 114 行定义.
114 {
115 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLESETHHFH, h);
116 }
◆ setHHStretchLastSection()
void setHHStretchLastSection |
( |
bool |
b | ) |
|
在文件 QTableWidget.xcsm 第 87 行定义.
87 {
88 QtXnl.widget_set_bool_value(nativehandle, Constant.TABLESETHHLS, b);
89 }
◆ setItem()
long setItem |
( |
int |
row, |
|
|
int |
column, |
|
|
String |
icon, |
|
|
String |
text |
|
) |
| |
在文件 QTableWidget.xcsm 第 30 行定义.
30 {
31 return QtXnl.long_long_string2(nativehandle, Constant.TABLESETITEM, ((long)row) << 32 | ((long)column & 0xffffffffl), icon, text);
32 }
◆ setItemAlign()
void setItemAlign |
( |
int |
item, |
|
|
int |
align |
|
) |
| |
在文件 QTableWidget.xcsm 第 63 行定义.
63 {
64 QtXnl.widget_set_v2int_value(item, Constant.TABLEWIDGETITEM_SETALIGN, 0, align);
65 }
◆ setItemBackColor()
void setItemBackColor |
( |
long |
item, |
|
|
int |
color |
|
) |
| |
在文件 QTableWidget.xcsm 第 164 行定义.
164 {
165 QtXnl.widget_set_intlongint_value(nativehandle, Constant.SETTABLEITEMBACKCOLOR, item, 0, color);
166 }
◆ setItemCheck()
void setItemCheck |
( |
long |
item, |
|
|
bool |
checked |
|
) |
| |
在文件 QTableWidget.xcsm 第 167 行定义.
167 {
168 QtXnl.widget_set_int_bool_value(item, Constant.TABITEMSETCHECK, 0, checked);
169 }
◆ setItemColor()
void setItemColor |
( |
long |
item, |
|
|
int |
color |
|
) |
| |
在文件 QTableWidget.xcsm 第 161 行定义.
161 {
162 QtXnl.widget_set_intlongint_value(nativehandle, Constant.SETTABLEITEMCOLOR, item, 0, color);
163 }
◆ setItemIcon()
void setItemIcon |
( |
long |
item, |
|
|
String |
iconFile |
|
) |
| |
在文件 QTableWidget.xcsm 第 158 行定义.
158 {
159 QtXnl.widget_set_intlongstring_value(0, Constant.SETTABLEITEMICON, item, 0, iconFile);
160 }
◆ setItemTag()
void setItemTag |
( |
long |
item, |
|
|
long |
tag |
|
) |
| |
在文件 QTableWidget.xcsm 第 79 行定义.
79 {
80 QtXnl.object_set_long_int_long(nativehandle, Constant.TABLESETTAG, item, 0, tag);
81 }
◆ setItemText()
void setItemText |
( |
long |
item, |
|
|
String |
text |
|
) |
| |
在文件 QTableWidget.xcsm 第 155 行定义.
155 {
156 QtXnl.widget_set_intlongstring_value(0, Constant.SETTABLEITEMTEXT, item, 0, text);
157 }
◆ setRowCount()
void setRowCount |
( |
int |
c | ) |
|
在文件 QTableWidget.xcsm 第 43 行定义.
43 {
44 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLESETROWCNT, c);
45 }
◆ setRowHeight()
void setRowHeight |
( |
int |
row, |
|
|
int |
height |
|
) |
| |
在文件 QTableWidget.xcsm 第 204 行定义.
204 {
205 QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_SETROWHEIGHT, row, height);
206 }
◆ setRowHidden()
void setRowHidden |
( |
int |
row, |
|
|
bool |
hide |
|
) |
| |
在文件 QTableWidget.xcsm 第 225 行定义.
225 {
226 QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_SETROWHIDDEN, row, hide ? 1 : 0);
227 }
◆ setSelectionBehavior()
void setSelectionBehavior |
( |
int |
sb | ) |
|
在文件 QTableWidget.xcsm 第 105 行定义.
105 {
106 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLESETSB, sb);
107 }
◆ setSelectionMode()
void setSelectionMode |
( |
int |
sm | ) |
|
在文件 QTableWidget.xcsm 第 102 行定义.
102 {
103 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLESETSM, sm);
104 }
◆ setShowGrid()
void setShowGrid |
( |
bool |
s | ) |
|
在文件 QTableWidget.xcsm 第 96 行定义.
96 {
97 QtXnl.widget_set_bool_value(nativehandle, Constant.TABLESETSG, s);
98 }
◆ setSortingEnabled()
void setSortingEnabled |
( |
bool |
enable | ) |
|
在文件 QTableWidget.xcsm 第 234 行定义.
234 {
235 QtXnl.widget_set_bool_value(nativehandle, Constant.QTV_SETSORTINGENABLED, enable);
236 }
◆ setSpan()
void setSpan |
( |
int |
row, |
|
|
int |
column, |
|
|
int |
rowSpan, |
|
|
int |
columnSpan |
|
) |
| |
在文件 QTableWidget.xcsm 第 261 行定义.
261 {
262 QtXnl.native_int4(nativehandle, Constant.QTV_SETSPAN, row, column, rowSpan, columnSpan);
263 }
◆ setVHColumns()
void setVHColumns |
( |
String [] |
columns | ) |
|
在文件 QTableWidget.xcsm 第 120 行定义.
120 {
121 QtXnl.widget_set_object_value(nativehandle, Constant.SETTABVHCOLUMNS, columns);
122 }
◆ setVHDefaultSectionSize()
void setVHDefaultSectionSize |
( |
int |
b | ) |
|
在文件 QTableWidget.xcsm 第 93 行定义.
93 {
94 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLESETVHDSS, b);
95 }
◆ setVHResizeMode()
void setVHResizeMode |
( |
int |
b | ) |
|
在文件 QTableWidget.xcsm 第 90 行定义.
90 {
91 QtXnl.widget_set_vint_value(nativehandle, Constant.TABLESETVHRM, b);
92 }
◆ setVHVisible()
void setVHVisible |
( |
bool |
bv | ) |
|
在文件 QTableWidget.xcsm 第 99 行定义.
99 {
100 QtXnl.widget_set_bool_value(nativehandle, Constant.TABLESETVHV, bv);
101 }
◆ setWordWrap()
void setWordWrap |
( |
bool |
on | ) |
|
在文件 QTableWidget.xcsm 第 249 行定义.
249 {
250 QtXnl.widget_set_bool_value(nativehandle, Constant.QTV_SETWORDWRAP, on);
251 }
◆ showGrid()
在文件 QTableWidget.xcsm 第 240 行定义.
240 {
241 return QtXnl.widget_get_bool_value(nativehandle, Constant.QTV_SHOWGRID);
242 }
◆ sortByColumn()
在文件 QTableWidget.xcsm 第 273 行定义.
273 {
274 QtXnl.widget_set_v2int_value(nativehandle, Constant.QTV_SORTBYCOLUMN, column, order);
275 }
◆ verticalHeader()
QHeaderView verticalHeader |
( |
| ) |
|
在文件 QTableWidget.xcsm 第 187 行定义.
187 {
188 return (QHeaderView)QtXnl.widget_get_object(nativehandle, Constant.QTW_VERTICALHEADER);
189 }
◆ wordWrap()
在文件 QTableWidget.xcsm 第 252 行定义.
252 {
253 return QtXnl.widget_get_bool_value(nativehandle, Constant.QTV_WORDWRAP);
254 }