以下成員源於類 QContextMenuEvent 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(deprecated (6.4))
|
QContextMenuEvent (QContextMenuEvent::Reason reason , const QPoint & pos ) |
This function is deprecated since 6.4. We strongly advise against using it in new code.
Use the other constructor instead (global position is required).
構造上下文菜單事件對象,采用將 accept (接受) 參數標誌設為 false。
The reason 參數必須是 QContextMenuEvent::Mouse or QContextMenuEvent::Keyboard .
The pos 參數指定相對於接收 Widget 的鼠標位置。
The globalPos () 被初始化為 QCursor::pos (),可能不閤適。使用其它構造函數以明確指定全局位置。