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

QWidget::enabled [read, write, inherited]

whether the widget is enabled

An enabled widget handles keyboard and mouse events; a disabled widget does not.

Some widgets display themselves differently when they are disabled. For example a button might draw its label grayed out. If your widget needs to know when it becomes enabled or disabled, you can use the changeEvent() with type QEvent::EnabledChange.

Disabling a widget implicitly disables all its children. Enabling respectively enables all child widgets unless they have been explicitly disabled.

By default, this property is true.

See also:
isEnabledTo(), QKeyEvent, QMouseEvent, changeEvent()

Definition at line 149 of file qwidget.h.

Referenced by QTreeView::drawRow(), and QListView::paintEvent().


Generated by  Doxygen 1.6.0   Back to index