xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Public 成员函数 | Private 属性
QHeaderView类 参考
类 QHeaderView 继承关系图:
QAbstractItemView

Public 成员函数

Private 属性

额外继承的成员函数

详细描述

在文件 QHeaderView.x4 行定义.

构造及析构函数说明

◆ QHeaderView()

QHeaderView ( long  h)

在文件 QHeaderView.x6 行定义.

6 {
7 super(h);
8 }

成员函数说明

◆ cascadingSectionResizes()

bool cascadingSectionResizes ( )

在文件 QHeaderView.x196 行定义.

196 {
197 return QtXnl.widget_get_bool_value(nativehandle, Constant.QH_CASCADINGSECTIONRESIZES);
198 }

◆ count()

int count ( )

在文件 QHeaderView.x91 行定义.

91 {
92 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_COUNT);
93 }

◆ defaultAlignment()

int defaultAlignment ( )

在文件 QHeaderView.x232 行定义.

232 {
233 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_DEFAULTALIGNMENT);
234 }

◆ defaultSectionSize()

int defaultSectionSize ( )

在文件 QHeaderView.x204 行定义.

204 {
205 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_DEFAULTSECTIONSIZE);
206 }

◆ doItemsLayout()

void doItemsLayout ( )

在文件 QHeaderView.x240 行定义.

240 {
241 QtXnl.widget_slot(nativehandle, Constant.QH_DOITEMSLAYOUT);
242 }

◆ geometriesChanged()

void geometriesChanged ( )

在文件 QHeaderView.x316 行定义.

316 {
317 if (_header_listener != nilptr){
318 _header_listener.geometriesChanged(this);
319 }
320 }
onHeaderEventListener _header_listener

◆ getOnHeaderEventListener()

onHeaderEventListener getOnHeaderEventListener ( )

在文件 QHeaderView.x272 行定义.

272 {
273 return _header_listener;
274 }

◆ hiddenSectionCount()

int hiddenSectionCount ( )

在文件 QHeaderView.x79 行定义.

79 {
80 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_HIDDENSECTIONCOUNT);
81 }

◆ hideSection()

void hideSection ( int  logicalIndex)

在文件 QHeaderView.x83 行定义.

83 {
84 QtXnl.widget_set_vint_value(nativehandle, Constant.QH_HIDESECTION, logicalIndex);
85 }

◆ highlightSections()

bool highlightSections ( )

在文件 QHeaderView.x131 行定义.

131 {
132 return QtXnl.widget_get_bool_value(nativehandle, Constant.QH_HIGHLIGHTSECTIONS);
133 }

◆ isClickable()

bool isClickable ( )

在文件 QHeaderView.x125 行定义.

125{ return sectionsClickable(); }
bool sectionsClickable()

◆ isMovable()

bool isMovable ( )

在文件 QHeaderView.x113 行定义.

113{ return sectionsMovable(); }
bool sectionsMovable()

◆ isSectionHidden()

bool isSectionHidden ( int  logicalIndex)

在文件 QHeaderView.x71 行定义.

71 {
72 return 0 != QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_ISSECTIONHIDDEN, logicalIndex, 0);
73 }

◆ isSortIndicatorShown()

bool isSortIndicatorShown ( )

在文件 QHeaderView.x172 行定义.

172 {
173 return QtXnl.widget_get_bool_value(nativehandle, Constant.QH_ISSORTINDICATORSHOWN);
174 }

◆ length()

int length ( )

在文件 QHeaderView.x18 行定义.

18 {
19 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_GETLENGTH);
20 }

◆ logicalIndex()

int logicalIndex ( int  visualIndex)

在文件 QHeaderView.x99 行定义.

99 {
100 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_LOGICALINDEX, visualIndex, 0);
101 }

◆ logicalIndexAt() [1/3]

int logicalIndexAt ( int  position)

在文件 QHeaderView.x31 行定义.

31 {
32 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_LOGICALINDEXAT, position, 0);
33 }

◆ logicalIndexAt() [2/3]

int logicalIndexAt ( int  x,
int  y 
)

在文件 QHeaderView.x35 行定义.

35 {
36 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_LOGICALINDEXATXY, x, y);
37 }

◆ logicalIndexAt() [3/3]

int logicalIndexAt ( QPoint  pos)

在文件 QHeaderView.x39 行定义.

39 {
40 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_LOGICALINDEXATXY, pos.x, pos.y);
41 }

◆ maximumSectionSize()

int maximumSectionSize ( )

在文件 QHeaderView.x224 行定义.

224 {
225 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_MAXIMUMSECTIONSIZE);
226 }

◆ minimumSectionSize()

int minimumSectionSize ( )

在文件 QHeaderView.x216 行定义.

216 {
217 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_MINIMUMSECTIONSIZE);
218 }

◆ moveSection()

void moveSection ( int  from,
int  _to 
)

在文件 QHeaderView.x55 行定义.

55 {
56 QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_MOVESECTION, from, _to);
57 }

◆ offset()

int offset ( )

在文件 QHeaderView.x14 行定义.

14 {
15 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_GETOFFSET);
16 }

◆ orientation()

Orientation orientation ( )

在文件 QHeaderView.x10 行定义.

10 {
11 return (Orientation)QtXnl.widget_get_int_value(nativehandle, Constant.QH_ORIENTATION);
12 }

◆ reset()

void reset ( )

在文件 QHeaderView.x261 行定义.

261 {
262 QtXnl.widget_slot(nativehandle, Constant.QH_RESET);
263 }

◆ resetDefaultSectionSize()

void resetDefaultSectionSize ( )

在文件 QHeaderView.x212 行定义.

212 {
213 QtXnl.widget_slot(nativehandle, Constant.QH_RESETDEFAULTSECTIONSIZE);
214 }

◆ resizeContentsPrecision()

int resizeContentsPrecision ( )

在文件 QHeaderView.x151 行定义.

151 {
152 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_RESIZECONTENTSPRECISION);
153 }

◆ resizeMode()

ResizeMode resizeMode ( int  logicalindex)

在文件 QHeaderView.x161 行定义.

162 { return sectionResizeMode(logicalindex); }
ResizeMode sectionResizeMode(int logicalIndex)

◆ resizeSection()

void resizeSection ( int  logicalIndex,
int  size 
)

在文件 QHeaderView.x63 行定义.

63 {
64 QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_RESIZESECTION, logicalIndex, size);
65 }

◆ resizeSections()

void resizeSections ( ResizeMode  mode)

在文件 QHeaderView.x67 行定义.

67 {
68 QtXnl.widget_set_vint_value(nativehandle, Constant.QH_RESIZESECTIONS, mode);
69 }

◆ restoreState()

bool restoreState ( byte []  state)

在文件 QHeaderView.x256 行定义.

256 {
257 QtXnl.widget_set_object_value(nativehandle, Constant.QH_LOADSTATE, state);
258 return true;
259 }

◆ saveState()

byte [] saveState ( )

在文件 QHeaderView.x252 行定义.

252 {
253 return (byte[])QtXnl.widget_get_object(nativehandle, Constant.QH_SAVESTATE);
254 }

◆ sectionClicked()

void sectionClicked ( int  logicalIndex)

在文件 QHeaderView.x291 行定义.

291 {
292 if (_header_listener != nilptr){
293 _header_listener.sectionClicked(this, logicalIndex);
294 }
295 }

◆ sectionCountChanged()

void sectionCountChanged ( int  oldCount,
int  newCount 
)

在文件 QHeaderView.x306 行定义.

306 {
307 if (_header_listener != nilptr){
308 _header_listener.sectionCountChanged(this, oldCount, newCount);
309 }
310 }

◆ sectionDoubleClicked()

void sectionDoubleClicked ( int  logicalIndex)

在文件 QHeaderView.x301 行定义.

301 {
302 if (_header_listener != nilptr){
303 _header_listener.sectionDoubleClicked(this, logicalIndex);
304 }
305 }

◆ sectionEntered()

void sectionEntered ( int  logicalIndex)

在文件 QHeaderView.x296 行定义.

296 {
297 if (_header_listener != nilptr){
298 _header_listener.sectionEntered(this, logicalIndex);
299 }
300 }

◆ sectionHandleDoubleClicked()

void sectionHandleDoubleClicked ( int  logicalIndex)

在文件 QHeaderView.x311 行定义.

311 {
312 if (_header_listener != nilptr){
313 _header_listener.sectionHandleDoubleClicked(this, logicalIndex);
314 }
315 }

◆ sectionMoved()

void sectionMoved ( int  logicalIndex,
int  oldVisualIndex,
int  newVisualIndex 
)

在文件 QHeaderView.x276 行定义.

276 {
277 if (_header_listener != nilptr){
278 _header_listener.sectionMoved(this, logicalIndex, oldVisualIndex, newVisualIndex);
279 }
280 }

◆ sectionPosition()

int sectionPosition ( int  logicalIndex)

在文件 QHeaderView.x47 行定义.

47 {
48 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONPOSITION, logicalIndex, 0);
49 }

◆ sectionPressed()

void sectionPressed ( int  logicalIndex)

在文件 QHeaderView.x286 行定义.

286 {
287 if (_header_listener != nilptr){
288 _header_listener.sectionPressed(this, logicalIndex);
289 }
290 }

◆ sectionResized()

void sectionResized ( int  logicalIndex,
int  oldSize,
int  newSize 
)

在文件 QHeaderView.x281 行定义.

281 {
282 if (_header_listener != nilptr){
283 _header_listener.sectionResized(this, logicalIndex, oldSize, newSize);
284 }
285 }

◆ sectionResizeMode()

ResizeMode sectionResizeMode ( int  logicalIndex)

在文件 QHeaderView.x135 行定义.

135 {
136 return (ResizeMode)QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONRESIZEMODE, logicalIndex, 0);
137 }

◆ sectionsClickable()

bool sectionsClickable ( )

在文件 QHeaderView.x119 行定义.

119 {
120 return QtXnl.widget_get_bool_value(nativehandle, Constant.QH_SECTIONSCLICKABLE);
121 }

◆ sectionsHidden()

bool sectionsHidden ( )

在文件 QHeaderView.x248 行定义.

248 {
249 return QtXnl.widget_get_bool_value(nativehandle, Constant.QH_SECTIONSHIDDEN);
250 }

◆ sectionSize()

int sectionSize ( int  logicalIndex)

在文件 QHeaderView.x43 行定义.

43 {
44 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONSIZE, logicalIndex, 0);
45 }

◆ sectionSizeHint()

int sectionSizeHint ( int  logicalIndex)

在文件 QHeaderView.x23 行定义.

23 {
24 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONSIZEHINT, logicalIndex, 0);
25 }

◆ sectionsMovable()

bool sectionsMovable ( )

在文件 QHeaderView.x107 行定义.

107 {
108 return QtXnl.widget_get_bool_value(nativehandle, Constant.QH_SECTIONSMOVABLE);
109 }

◆ sectionsMoved()

bool sectionsMoved ( )

在文件 QHeaderView.x244 行定义.

244 {
245 return QtXnl.widget_get_bool_value(nativehandle, Constant.QH_SECTIONSMOVED);
246 }

◆ sectionViewportPosition()

int sectionViewportPosition ( int  logicalIndex)

在文件 QHeaderView.x51 行定义.

51 {
52 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SECTIONVIEWPORTPOSITION, logicalIndex, 0);
53 }

◆ setCascadingSectionResizes()

void setCascadingSectionResizes ( bool  enable)

在文件 QHeaderView.x200 行定义.

200 {
201 QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETCASCADINGSECTIONRESIZES, enable);
202 }

◆ setClickable()

void setClickable ( bool  clickable)

在文件 QHeaderView.x123 行定义.

123{ setSectionsClickable(clickable); }
void setSectionsClickable(bool clickable)

◆ setDefaultAlignment()

void setDefaultAlignment ( int  alignment)

在文件 QHeaderView.x236 行定义.

236 {
237 QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETDEFAULTALIGNMENT, alignment);
238 }

◆ setDefaultSectionSize()

void setDefaultSectionSize ( int  size)

在文件 QHeaderView.x208 行定义.

208 {
209 QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETDEFAULTSECTIONSIZE, size);
210 }

◆ setHighlightSections()

void setHighlightSections ( bool  highlight)

在文件 QHeaderView.x127 行定义.

127 {
128 QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETHIGHLIGHTSECTIONS, highlight);
129 }

◆ setMaximumSectionSize()

void setMaximumSectionSize ( int  size)

在文件 QHeaderView.x228 行定义.

228 {
229 QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETMAXIMUMSECTIONSIZE, size);
230 }

◆ setMinimumSectionSize()

void setMinimumSectionSize ( int  size)

在文件 QHeaderView.x220 行定义.

220 {
221 QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETMINIMUMSECTIONSIZE, size);
222 }

◆ setMovable()

void setMovable ( bool  movable)

在文件 QHeaderView.x111 行定义.

111{ setSectionsMovable(movable); }
void setSectionsMovable(bool movable)

◆ setOnHeaderEventListener()

void setOnHeaderEventListener ( onHeaderEventListener  _l)

在文件 QHeaderView.x268 行定义.

268 {
269 _header_listener = _l;
270 }

◆ setResizeContentsPrecision()

void setResizeContentsPrecision ( int  precision)

在文件 QHeaderView.x147 行定义.

147 {
148 QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETRESIZECONTENTSPRECISION, precision);
149 }

◆ setResizeMode() [1/2]

void setResizeMode ( int  logicalindex,
ResizeMode  mode 
)

在文件 QHeaderView.x158 行定义.

159 { setSectionResizeMode(logicalindex, mode); }
void setSectionResizeMode(ResizeMode mode)

◆ setResizeMode() [2/2]

void setResizeMode ( ResizeMode  mode)

在文件 QHeaderView.x155 行定义.

156 { setSectionResizeMode(mode); }

◆ setSectionHidden()

void setSectionHidden ( int  logicalIndex,
bool  hide 
)

在文件 QHeaderView.x75 行定义.

75 {
76 QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SETSECTIONHIDDEN, logicalIndex, hide ? 1 : 0);
77 }

◆ setSectionResizeMode() [1/2]

void setSectionResizeMode ( int  logicalIndex,
ResizeMode  mode 
)

在文件 QHeaderView.x143 行定义.

143 {
144 QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SETSECTIONRESIZEMODE, logicalIndex, mode);
145 }

◆ setSectionResizeMode() [2/2]

void setSectionResizeMode ( ResizeMode  mode)

在文件 QHeaderView.x139 行定义.

139 {
140 QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SETSECTIONRESIZEMODE, mode);
141 }

◆ setSectionsClickable()

void setSectionsClickable ( bool  clickable)

在文件 QHeaderView.x115 行定义.

115 {
116 QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETSECTIONSCLICKABLE, clickable);
117 }

◆ setSectionsMovable()

void setSectionsMovable ( bool  movable)

在文件 QHeaderView.x103 行定义.

103 {
104 QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETSECTIONSMOVABLE, movable);
105 }

◆ setSortIndicator()

void setSortIndicator ( int  logicalIndex,
Qt.SortOrder  order 
)

在文件 QHeaderView.x176 行定义.

176 {
177 QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SETSORTINDICATOR, logicalIndex, order);
178 }

◆ setSortIndicatorShown()

void setSortIndicatorShown ( bool  show)

在文件 QHeaderView.x168 行定义.

168 {
169 QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETSORTINDICATORSHOWN, show);
170 }

◆ setStretchLastSection()

void setStretchLastSection ( bool  stretch)

在文件 QHeaderView.x192 行定义.

192 {
193 QtXnl.widget_set_bool_value(nativehandle, Constant.QH_SETSTRETCHLASTSECTION, stretch);
194 }

◆ showSection()

void showSection ( int  logicalIndex)

在文件 QHeaderView.x87 行定义.

87 {
88 QtXnl.widget_set_vint_value(nativehandle, Constant.QH_SHOWSECTION, logicalIndex);
89 }

◆ sortIndicatorChanged()

void sortIndicatorChanged ( int  logicalIndex,
int  order 
)

在文件 QHeaderView.x321 行定义.

321 {
322 if (_header_listener != nilptr){
323 _header_listener.sortIndicatorChanged(this, logicalIndex, (Qt.SortOrder)order);
324 }
325 }
Definition QCefQuery.x:3

◆ sortIndicatorOrder()

Qt.SortOrder sortIndicatorOrder ( )

在文件 QHeaderView.x184 行定义.

184 {
185 return (Qt.SortOrder)QtXnl.widget_get_int_value(nativehandle, Constant.QH_SORTINDICATORORDER);
186 }

◆ sortIndicatorSection()

int sortIndicatorSection ( )

在文件 QHeaderView.x180 行定义.

180 {
181 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_SORTINDICATORSECTION);
182 }

◆ stretchLastSection()

bool stretchLastSection ( )

在文件 QHeaderView.x188 行定义.

188 {
189 return QtXnl.widget_get_bool_value(nativehandle, Constant.QH_STRETCHLASTSECTION);
190 }

◆ stretchSectionCount()

int stretchSectionCount ( )

在文件 QHeaderView.x164 行定义.

164 {
165 return QtXnl.widget_get_int_value(nativehandle, Constant.QH_STRETCHSECTIONCOUNT);
166 }

◆ swapSections()

void swapSections ( int  first,
int  second 
)

在文件 QHeaderView.x59 行定义.

59 {
60 QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_SWAPSECTIONS, first, second);
61 }

◆ visualIndex()

int visualIndex ( int  logicalIndex)

在文件 QHeaderView.x95 行定义.

95 {
96 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_VISUALINDEX, logicalIndex, 0);
97 }

◆ visualIndexAt()

int visualIndexAt ( int  position)

在文件 QHeaderView.x27 行定义.

27 {
28 return QtXnl.widget_set_v2int_value(nativehandle, Constant.QH_VISUALINDEXAT, position, 0);
29 }

结构体成员变量说明

◆ _header_listener

onHeaderEventListener _header_listener = nilptr
private

在文件 QHeaderView.x266 行定义.