このページでは

QIconDragEvent Class

QIconDragEvent クラスは、メインアイコンのドラッグが開始されたことを示します。詳細...

ヘッダー: #include <QIconDragEvent>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
継承元: QEvent

パブリック関数

プロテクト関数

QIconDragEvent(QIconDragEvent &&)
QIconDragEvent &operator=(QIconDragEvent &&)
QIconDragEvent &operator=(const QIconDragEvent &other)

詳細な説明

ウィンドウのメインアイコンがウィンドウの外へドラッグされると、ウィジェットにアイコンドラッグイベントが送信されます。macOS では、ウィンドウのプロキシアイコンがタイトルバーの外へドラッグされたときに、このイベントが発生します。

通常、このイベントに応答してドラッグ&ドロップ処理を開始します。

「ドラッグ&ドロップ」、「QMimeData 」、および「QDrag 」も参照してください 。

メンバ関数のドキュメント

QIconDragEvent::QIconDragEvent()

acceptフラグがfalseに設定されたアイコンのドラッグイベントオブジェクトを作成します。

accept()も参照してください 。

[protected delete] QIconDragEvent::QIconDragEvent(QIconDragEvent &&)

QIconDragEvent のインスタンスをMoveコンストラクタで生成します。この関数は削除されています。

[protected delete] QIconDragEvent &QIconDragEvent::operator=(QIconDragEvent &&)

other をこのQIconDragEvent インスタンスに割り当てます。この関数は削除されます。

[noexcept protected default] QIconDragEvent &QIconDragEvent::operator=(const QIconDragEvent &other)

other をこのQIconDragEvent インスタンスにコピーして割り当てます。

© 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.