Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Example draganddrop puzzle pieces vanish
Forum Updated to NodeBB v4.3 + New Features

Example draganddrop puzzle pieces vanish

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 368 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • PsnarfP Offline
    PsnarfP Offline
    Psnarf
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • PsnarfP Offline
      PsnarfP Offline
      Psnarf
      wrote on last edited by
      #4

      After reboot I cannot replicate this. Please close as not-an-issue.

      Obquote: "Sorry about that!" - Maxwell Smart, Secret Agent 86

      1 Reply Last reply
      0
      • Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @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)

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1
        • PsnarfP Offline
          PsnarfP Offline
          Psnarf
          wrote on last edited by
          #3

          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.

          1 Reply Last reply
          0
          • PsnarfP Offline
            PsnarfP Offline
            Psnarf
            wrote on last edited by
            #4

            After reboot I cannot replicate this. Please close as not-an-issue.

            Obquote: "Sorry about that!" - Maxwell Smart, Secret Agent 86

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved