📄 qfocusdata.3qt
字号:
.TH QFocusData 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQFocusData \- Maintains the list of widgets which can take focus.SH SYNOPSIS.br.PP\fC#include <qfocusdata.h>\fR.PP.SS "Public Members".in +1c.ti -1c.BI "QWidget* \fBfocusWidget\fR () const".br.ti -1c.BI "QWidget* \fBhome\fR () ".br.ti -1c.BI "QWidget* \fBnext\fR () ".br.ti -1c.BI "QWidget* \fBprev\fR () ".br.ti -1c.BI "int \fBcount\fR () const".br.in -1c.SH DESCRIPTIONMaintains the list of widgets which can take focus..PPThis read-only list always contains at least one widget (the top-level widget, actually). It provides a simple cursor, which can be reset to the current focus widget using home(), or moved to its neighboring widgets using next() and prev(), and a count() of widgets in the list..PPNote that some widgets in the list may not accept focus. Widgets are added to the list as necessary, but not removed from it. This lets widgets change focus policy dynamically without disrupting the focus chain the user sees: When a widget disables and re-enables tab focus, its position in the focus chain does not change..PPWhen reimplementing QWidget::focusNextPrevChild() to provide special focus flow, you will usually call QWidget::focusData() to retrieve the focus data stored at the top-level widget - the focus data for that hierarchy of widgets..PPThe cursor may change at any time; this class is not thread-safe..PPSee also QWidget::focusNextPrevChild(), QWidget::setTabOrder() and QWidget::setFocusPolicy()..SH MEMBER FUNCTION DOCUMENTATION.SH "int QFocusData::count () const"Returns a count of the number of widgets in the hierarchy which accept focus..SH "QWidget* QFocusData::focusWidget () const"Returns the widgets in the hierarchy which currently has focus..SH "QWidget* QFocusData::home ()"Moves the cursor to the focusWidget() and returns that widget. You must call this before next() or prev() to iterate meaningfully..SH "QWidget* QFocusData::next ()"Moves the cursor to the right. Note that the focus widgets are a \fIloop\fR of widgets. If you keep calling next(), it will loop, without ever returning 0..SH "QWidget* QFocusData::prev ()"Moves the cursor to the left. Note that the focus widgetsare a \fIloop\fR of widgets. If you keep calling prev(), it willloop, without ever returning 0..SH "SEE ALSO".BR http://doc.trolltech.com/qfocusdata.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -