Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QFocusEvent class contains event parameters for widget focus events. More...
Public Member Functions | |
QFocusEvent (QFocusEvent copy) | |
| |
QFocusEvent (QEvent.Type type, Qt.FocusReason reason=Qt.FocusReason.OtherFocusReason) | |
| |
override void | CreateProxy () |
new bool | GotFocus () |
| |
new bool | LostFocus () |
| |
new Qt.FocusReason | Reason () |
| |
new void | Dispose () |
Public Member Functions inherited from QtCore.QEvent | |
QEvent (QEvent copy) | |
| |
QEvent (QEvent.Type type) | |
| |
new void | Accept () |
| |
new void | Ignore () |
| |
new bool | IsAccepted () |
new void | SetAccepted (bool accepted) |
new bool | Spontaneous () |
| |
new QEvent.Type | type () |
| |
new void | Dispose () |
Protected Member Functions | |
QFocusEvent (System.Type dummy) | |
Protected Member Functions inherited from QtCore.QEvent | |
QEvent (System.Type dummy) | |
The QFocusEvent class contains event parameters for widget focus events.
Focus events are sent to widgets when the keyboard input focus changes. Focus events occur due to mouse actions, key presses (such as Tab or Backtab), the window system, popup menus, keyboard shortcuts, or other application-specific reasons. The reason for a particular focus event is returned by reason() in the appropriate event handler.
The event handlers QWidget::focusInEvent(), QWidget::focusOutEvent(), QGraphicsItem::focusInEvent and QGraphicsItem::focusOutEvent() receive focus events.
See also QWidget::setFocus(), QWidget::setFocusPolicy(), and Keyboard Focus.
|
protected |
QtGui.QFocusEvent.QFocusEvent | ( | QFocusEvent | copy | ) |
Constructs a focus event object.
The type parameter must be either QEvent::FocusIn or QEvent::FocusOut. The reason describes the cause of the change in focus.
QtGui.QFocusEvent.QFocusEvent | ( | QEvent.Type | type, |
Qt.FocusReason | reason = Qt.FocusReason.OtherFocusReason |
||
) |
Constructs a focus event object.
The type parameter must be either QEvent::FocusIn or QEvent::FocusOut. The reason describes the cause of the change in focus.
|
virtual |
Reimplemented from QtCore.QEvent.
new void QtGui.QFocusEvent.Dispose | ( | ) |
new bool QtGui.QFocusEvent.GotFocus | ( | ) |
Returns true if type() is QEvent::FocusIn; otherwise returns false.
new bool QtGui.QFocusEvent.LostFocus | ( | ) |
Returns true if type() is QEvent::FocusOut; otherwise returns false.
new Qt.FocusReason QtGui.QFocusEvent.Reason | ( | ) |
Returns the reason for this focus event.