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

QWidget * QWidget::find ( WId  id  )  [static, inherited]

Returns a pointer to the widget with window identifer/handle id.

The window identifier type depends on the underlying window system, see qwindowdefs.h for the actual definition. If there is no widget with this identifier, 0 is returned.

Definition at line 1952 of file qwidget.cpp.

References QHash< Key, T >::value().

Referenced by StopFilter::next(), and QApplication::topLevelAt().

{
    return QWidgetPrivate::mapper ? QWidgetPrivate::mapper->value(id, 0) : 0;
}


Generated by  Doxygen 1.6.0   Back to index