Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference |
|
Maintains the list of widgets which can take focus. More...
#include <qfocusdata.h>
This 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.
Note 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.
When 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.
The cursor may change at any time; this class is not thread-safe.
See also QWidget::focusNextPrevChild(), QWidget::setTabOrder(), and QWidget::setFocusPolicy().
Returns a count of the number of widgets in the hierarchy which accept focus.
Returns the widgets in the hierarchy which currently has focus.
This file is part of the Qtopia platform, copyright © 1995-2005 Trolltech, all rights reserved.
| Copyright © 2005 Trolltech | Trademarks | Qtopia version 2.2.0
|