上一话题

冰箱磁贴范例

下一话题

模糊拾取器效果示例

拖放拼图范例

The Drag and Drop Puzzle example demonstrates a way of using the drag and drop system with item view widgets.

../_images/draganddroppuzzle-example.png

This example is an implementation of a simple jigsaw puzzle game using Qt’s drag and drop API. The 项视图拼图 example shows many of the same features, but takes an alternative approach that uses Qt’s model/view framework to manage drag and drop operations.

范例工程 @ code.qt.io