Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

qfocusdata(3qt) [redhat man page]

QFocusData(3qt) 														   QFocusData(3qt)

NAME
QFocusData - Maintains the list of widgets in the focus chain SYNOPSIS
#include <qfocusdata.h> Public Members QWidget * focusWidget () const QWidget * home () QWidget * next () QWidget * prev () QWidget * first () const QWidget * last () const int count () const DESCRIPTION
The QFocusData class maintains the list of widgets in the focus chain. This read-only list always contains at least one widget (i.e. the top-level widget). 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(). You can also retrieve the count() of the number of widgets in the list. The list is a loop, so if you keep iterating, for example using next(), you will never come to the end. 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 experiences. 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. A top-level widget's focus data contains the focus list for its hierarchy of widgets. The cursor may change at any time. This class is not thread-safe. See also QWidget::focusNextPrevChild(), QWidget::setTabOrder(), QWidget::focusPolicy, and Miscellaneous Classes. MEMBER FUNCTION DOCUMENTATION
int QFocusData::count () const Returns the number of widgets in the focus chain. QWidget * QFocusData::first () const Returns the first widget in the focus chain. The cursor is not modified. QWidget * QFocusData::focusWidget () const Returns the widgets in the hierarchy that are in the focus chain. QWidget * QFocusData::home () Moves the cursor to the focusWidget() and returns that widget. You must call this before next() or prev() to iterate meaningfully. QWidget * QFocusData::last () const Returns the last widget in the focus chain. The cursor is not modified. QWidget * QFocusData::next () Moves the cursor to the next widget in the focus chain. There is always a next widget because the list is a loop. QWidget * QFocusData::prev () Moves the cursor to the previous widget in the focus chain. There is always a previous widget because the list is a loop. SEE ALSO
http://doc.trolltech.com/qfocusdata.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qfocusdata.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QFocusData(3qt)

Check Out this Related Man Page

QMotifWidget(3qt)														 QMotifWidget(3qt)

NAME
QMotifWidget - The QWidget API for Xt/Motif widgets SYNOPSIS
This class is part of the Qt Motif Extension. #include <qmotifwidget.h> Inherits QWidget. Public Members QMotifWidget ( QWidget * parent, WidgetClass widgetclass, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, WFlags flags = 0 ) virtual ~QMotifWidget () Widget motifWidget () const DESCRIPTION
This class is defined in the Qt Motif Extension, which can be found in the qt/extensions directory. It is not included in the main Qt API. The QMotifWidget class provides the QWidget API for Xt/Motif widgets. QMotifWidget exists to provide a QWidget that can act as a parent for any Xt/Motif widget. Since the QMotifWidget is a proper QWidget, it an be used as a top-level widget (e.g. 0 parent) or as a child of any other QWidget. An Xt/Motif widget with a top-level QMotifWidget parent can begin using the standard Qt dialogs and custom QDialogs while keeping the main Xt/Motif interface of the application. Using a QMotifWidget as the parent for the various QDialogs will ensure that modality and stacking works properly throughout the entire application. Applications moving to Qt may have custom Xt/Motif widgets that will take time to rewrite with Qt. Such applications can use these custom widgets as QMotifWidget with QWidget parents. This allows the application's interface to be replaced gradually. MEMBER FUNCTION DOCUMENTATION
QMotifWidget::QMotifWidget ( QWidget * parent, WidgetClass widgetclass, ArgList args = NULL, Cardinal argcount = 0, const char * name = 0, WFlags flags = 0 ) Creates a QMotifWidget of the given widgetclass as a child of parent, with the name name and widget flags flags. The args and argcount arguments are passed on to XtCreateWidget. The motifWidget() function returns the resulting Xt/Motif widget. This widget can be used as a parent for any other Xt/Motif widget. If parent is a QMotifWidget, the Xt/Motif widget is created as a child of the parent's motifWidget(). If &#92; parent is 0 or a normal QWidget, the Xt/Motif widget is created as a child of a special ApplicationShell widget. Xt/Motif widgets can use this special ApplicationShell parent as the parent for existing Xt/Motif dialogs or QMotifDialogs. QMotifWidget::~QMotifWidget () [virtual] Destroys the QMotifWidget. The special ApplicationShell is also destroyed, if it was created during construction. Widget QMotifWidget::motifWidget () const Returns the embedded Xt/Motif widget. If a Shell widget was created by the constructor, you can access it with XtParent(). SEE ALSO
http://doc.trolltech.com/qmotifwidget.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qmotifwidget.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QMotifWidget(3qt)
Man Page