|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# Qt 3 Support Members for QFocusEvent

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

- QFocusEvent class reference

### Public Types

- enum Reason { Mouse, Tab, Backtab, MenuBar, ..., Shortcut }

## Member Type Documentation

### enum QFocusEvent::Reason

Use Qt::FocusReason instead.

Constant | Value | Description
--- | --- | ---
`QFocusEvent::Mouse` | `Qt::MouseFocusReason` | Same as Qt::MouseFocusReason.
`QFocusEvent::Tab` | `Qt::TabFocusReason` | Same as Qt::TabFocusReason.
`QFocusEvent::Backtab` | `Qt::BacktabFocusReason` | Same as Qt::BacktabFocusReason.
`QFocusEvent::MenuBar` | `Qt::MenuBarFocusReason` | Same as Qt::MenuBarFocusReason.
`QFocusEvent::ActiveWindow` | `Qt::ActiveWindowFocusReason` | Same as Qt::ActiveWindowFocusReason
`QFocusEvent::Other` | `Qt::OtherFocusReason` | Same as Qt::OtherFocusReason
`QFocusEvent::Popup` | `Qt::PopupFocusReason` | Same as Qt::PopupFocusReason
`QFocusEvent::Shortcut` | `Qt::ShortcutFocusReason` | Same as Qt::ShortcutFocusReason