Solved Example draganddrop puzzle pieces vanish
-
https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/draganddrop/puzzle?h=5.13
Using Linux
Open puzzle.pro in Qt Creator (4.10.0 Based on Qt 5.13.1), build and run. There are 25 pieces in the list widget. Drag one piece over to the puzzle widget. Drag another, drop it onto the first. On the third failed drop attempt, the piece vanishes. Now there are 23 pieces in the list widget, one in the puzzle. Once piece missing.KDE5/Plasma5. Will attempt code analysis, debug, to try an reveal where the missing pieces go.
Discovered this mystery trying to get smart on model programming. Finished puzzle was missing one or two pieces. The 'stop' icon appears while dragging a piece over others already in the puzzle until hovering over an open space. If you miss the open space in haste, three strikes you're out.
-
After reboot I cannot replicate this. Please close as not-an-issue.
Obquote: "Sorry about that!" - Maxwell Smart, Secret Agent 86
-
@Psnarf said in Example draganddrop puzzle pieces vanish:
Open puzzle.pro in Qt Creator (4.10.0 Based on Qt 5.13.1)
This is only the Qt version qtcreator was built with, not the one you're using for compiling applications. It is working fine for me with Qt5.14 (dev)
-
I can't replicate the issue in the Itemview version of the puzzle. It sometimes can take over half a dozen failed drops before the piece vanishes from the game. Will try 5.14 dev.
-
After reboot I cannot replicate this. Please close as not-an-issue.
Obquote: "Sorry about that!" - Maxwell Smart, Secret Agent 86