qt - Qt拖放中的热点是什么意思?

标签 qt drag-and-drop pyqt

Qt 有一个方法 QDrag::setHotSpot()哪一个

sets the position of the hot spot relative to the top-left corner of the pixmap used to the point specified by hotspot.



但什么是热点及其功能?你会如何定义它?

最佳答案

热点基本上定义了拖动操作正在进行时拖动的像素图应位于的位置。

看看这个 drag & drop example看看它通常是如何使用的。

关于qt - Qt拖放中的热点是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45502713/

相关文章:

c++ - QTextEdit - 根据 QCursor 位置有条件地拖放

python - 交换图像时保持 QGraphicsView 中的 View /滚动位置

c++ - PyQt:获取QDockWidget的当前Qt.DockWidgetArea

Qt 安装程序框架 : Translate component description

类似于 Trello 的 Javascript 拖放悬停临时 Div 占位符?

c++ - Qt 4.8.5 QVariant 未解析的外部符号 Visual Studio 2012

wpf - TreeView 项 : How to make selection change occur on Click instead of MouseDown?

python - 更改 QGraphicsView 的方向

c++ - Telnet 客户端控制台 : SEND invalid command - Only for Spanish version

qt - 在 Qt5 测试版中使用 QtWebKit