Drag and Drop Puzzle Example

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

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

This example is an implementation of a simple jigsaw puzzle game using Qt’s drag and drop API. The Item View Puzzle 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.

mainwindow.cpp Example File

mainwindow.h Example File

pieceslist.cpp Example File

pieceslist.h Example File

puzzlewidget.cpp Example File

puzzlewidget.h Example File

main.cpp Example File

puzzle.pro Example File

puzzle.qrc Example File

example.jpg Image File