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 |
プロテクトされた関数
| QHelpEvent(QHelpEvent &&) | |
| QHelpEvent & | operator=(QHelpEvent &&) |
| QHelpEvent & | operator=(const QHelpEvent &other) |
詳細な説明
このイベントは、アプリケーション内でインターセプトして、カスタムウィジェットに対してツールチップや「これは何ですか?」というヘルプを提供することができます。type() の引数は、QEvent::ToolTip またはQEvent::WhatsThis のいずれかです。
関連項目: QToolTip 、QWhatsThis 、QStatusTipEvent 、およびQWhatsThisClickedEvent 。
メンバー関数のドキュメント
QHelpEvent::QHelpEvent(QEvent::Type type, const QPoint &pos, const QPoint &globalPos)
指定されたtype に基づき、pos で指定されたウィジェット相対位置およびglobalPos で指定されたグローバル位置に対応するヘルプイベントを生成します。
type QEvent::ToolTip または のいずれかでなければなりません。QEvent::WhatsThis
pos() およびglobalPos()も参照してください 。
[protected delete] QHelpEvent::QHelpEvent(QHelpEvent &&)
QHelpEvent のインスタンスをmove-constructで生成します。この関数は削除されています。
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() と同じです。
y()、pos()、およびglobalPos()も参照してください 。
int QHelpEvent::y() const
pos().y() と同じです。
x()、pos()、およびglobalPos()も参照してください 。
[protected delete] QHelpEvent &QHelpEvent::operator=(QHelpEvent &&)
other をこのQHelpEvent インスタンスに移動・割り当てます。この関数は削除されます。
[noexcept protected default] QHelpEvent &QHelpEvent::operator=(const QHelpEvent &other)
other をこのQHelpEvent インスタンスにコピーして割り当てます。
© 2026 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.