Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QWidget * QWidget::focusWidget (  )  const [inherited]

Returns the last child of this widget that setFocus had been called on. For top level widgets this is the widget that will get focus in case this window gets activated

This is not the same as QApplication::focusWidget(), which returns the focus widget in the currently active window.

Definition at line 4294 of file qwidget.cpp.

Referenced by Q3WidgetStack::addWidget(), QScrollArea::focusNextPrevChild(), QDateTimeEdit::focusNextPrevChild(), Q3ScrollView::focusNextPrevChild(), QDialog::keyPressEvent(), QAccessibleWidget::navigate(), Q3WidgetStack::raiseWidget(), QAccessibleWidget::relationTo(), QApplication::setActiveWindow(), QWidget::setParent(), QDialog::setVisible(), and QInputContext::widgetDestroyed().

{
    return const_cast<QWidget *>(d_func()->focus_child);
}


Generated by  Doxygen 1.6.0   Back to index