Документ взят из кэша поисковой машины. Адрес оригинального документа : http://rtm-cs.sinp.msu.ru/manual/qt/qfocusdata.html
Дата изменения: Sun Jul 12 02:58:59 1998
Дата индексирования: Mon Oct 1 20:27:24 2012
Кодировка:
Qt Toolkit - QFocusData Class Qt logo

QFocusData Class Reference


Maintains the list of widgets which can take focus. More...

#include <qfocusdata.h>

List of all member functions.

Public Members


Detailed Description

Maintains the list of widgets which can take focus.

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.

See also: QWidget::focusNextPrevChild().


Member Function Documentation

int QFocusData::count () const

Returns a count of the number of widgets in the hierarchy which accept focus.

QWidgetQFocusData::focusWidget () const

Returns the widgets in the hierarchy which currently has focus.

QWidgetQFocusData::home ()

Moves the cursor to the focusWidget() and returns that widget. You must call this before next() or prev() to iterate meaningfully.

QWidgetQFocusData::next ()

Moves the cursor to the right. Note that the focus widgets are a loop of widgets. If you keep calling next(), it will loop, without ever returning 0.

QWidgetQFocusData::prev ()

Moves the cursor to the left. Note that the focus widgets are a loop of widgets. If you keep calling prev(), it will loop, without ever returning 0.


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


This file is part of the Qt toolkit, copyright © 1995-98 Troll Tech, all rights reserved.

It was generated from the following files:


Copyright © 1998 Troll TechTrademarks
Qt version 1.40