QHelpEvent Class
QHelpEventクラスは、ウィジェットの特定のポイントに関する役立つ情報を要求するために使用されるイベントを提供します。詳細...
ヘッダ | #include <QHelpEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
継承: | QEvent |
- 継承メンバを含む全メンバのリスト
- QHelpEventは、イベントクラスと ヘルプシステムの一部です。
パブリック関数
QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos) | |
const QPoint & | globalPos() const |
int | globalX() const |
int | globalY() const |
const QPoint & | pos() const |
int | x() const |
int | y() const |
詳細説明
このイベントは、カスタムウィジェットのツールチップや "What's This? "ヘルプを提供するアプリケーションでインターセプトすることができます。type() は、QEvent::ToolTip またはQEvent::WhatsThis のいずれかです。
QToolTip,QWhatsThis,QStatusTipEvent,QWhatsThisClickedEventも参照してください 。
メンバー関数ドキュメント
QHelpEvent::QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos)
pos で指定されたウィジェット相対位置とglobalPos で指定されたグローバル位置に対応する、与えられたtype を持つヘルプイベントを構築する。
type は または のいずれかでなければなりません。QEvent::ToolTip QEvent::WhatsThis
pos() およびglobalPos()も参照してください 。
const QPoint &QHelpEvent::globalPos() const
イベントが発生したときのマウスカーソルの位置をグローバル座標で返す。
pos(),globalX(),globalY()も参照 。
int QHelpEvent::globalX() const
x()、globalY()、globalPos()も参照の こと。
int QHelpEvent::globalY() const
y()、globalX()、globalPos()も参照の こと。
const QPoint &QHelpEvent::pos() const
イベントがディスパッチされたウィジェットからの相対的な、イベントが生成されたときのマウスカーソルの位置を返します。
globalPos(),x(),y()も参照してください 。
int QHelpEvent::x() const
pos().x() と同じ。
int QHelpEvent::y() const
pos().y() と同じ。
© 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.