Drag and drop a label itself
My label contains pixmap (chess piece). I want to make user able to drag it to other square of a board. Squares of the board are also labels. I see it in way that piece should be draggable while square should be droppable.
I've managed to learn how to drag and drop a pixmap using that kind of labels.
But now I am asking: is there a way to "drag and drop" piece label itself?
If not what would you suggest me?
I see such a solution: when starting dropping emit a signal to a layout, which contains a piece connected to a slot which removes the piece from the layout, and send other signal to add the piece to another place on the same layout. I don't like it, because looks bit sophisticated may be there are better solutions?