QContextMenuEvent Class Reference
|
Константа | Значение | Описание |
---|---|---|
QContextMenuEvent::Mouse | 0 | Послание события вызвала мышь. Normally this means the right mouse button was clicked, but this is platform dependent. |
QContextMenuEvent::Keyboard | 1 | Послание события вызвала клавиатура. On Windows, this means the menu button was pressed. |
QContextMenuEvent::Other | 2 | Это событие было послано другими способами (т.е. не мышкой или клавиатурой). |
Constructs a context menu event object with the accept parameter flag set to false.
The reason parameter must be QContextMenuEvent::Mouse or QContextMenuEvent::Keyboard.
The pos parameter specifies the mouse position relative to the receiving widget. globalPos is the mouse position in absolute coordinates. The modifiers holds the keyboard modifiers.
Constructs a context menu event object with the accept parameter flag set to false.
The reason parameter must be QContextMenuEvent::Mouse or QContextMenuEvent::Keyboard.
The pos parameter specifies the mouse position relative to the receiving widget. globalPos is the mouse position in absolute coordinates.
Constructs a context menu event object with the accept parameter flag set to false.
The reason parameter must be QContextMenuEvent::Mouse or QContextMenuEvent::Keyboard.
The pos parameter specifies the mouse position relative to the receiving widget.
The globalPos() is initialized to QCursor::pos(), which may not be appropriate. Use the other constructor to specify the global position explicitly.
Returns the global position of the mouse pointer at the time of the event.
Returns the global x position of the mouse pointer at the time of the event.
See also globalY() and globalPos().
Returns the global y position of the mouse pointer at the time of the event.
See also globalX() and globalPos().
Returns the position of the mouse pointer relative to the widget that received the event.
See also x(), y(), and globalPos().
Returns the reason for this context event.
Returns the x position of the mouse pointer, relative to the widget that received the event.
Returns the y position of the mouse pointer, relative to the widget that received the event.
Copyright © 2008 Nokia | Торговые марки | Qt 4.4.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |