Obsolete Members for QContextMenuEvent
クラスQContextMenuEvent の以下のメンバは非推奨である。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。
パブリック関数
(deprecated in 6.4) | QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint &pos) |
メンバ関数ドキュメント
[deprecated in 6.4]
QContextMenuEvent::QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint &pos)
この関数は6.4から非推奨となった。新しいコードでは使用しないことを強くお勧めします。
代わりに他のコンストラクタを使用してください(グローバル位置が必要です)。
acceptパラメータフラグをfalseに設定したコンテキストメニューイベントオブジェクトを構築します。
reason パラメーターはQContextMenuEvent::Mouse またはQContextMenuEvent::Keyboard でなければなりません。
pos パラメータは、受信ウィジェットに対するマウス位置を指定します。
globalPos() はQCursor::pos() に初期化されます。これは適切でないかもしれません。グローバル位置を明示的に指定するには、他のコンストラクタを使用してください。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.