PDA

View Full Version : Help with drag and drop several items, labels



jimmybanegas93
14th February 2014, 02:58
Hello everybody, I'm programming a Solitaire in QT 5.2.1, I'm new using QT and I´ve got a problem, I can´t use, I mean I don´t know the drag and drop functions of QT, I just can Drag and Drop an element (a card), but I want to drag and drop several cards, as real solitaire. I´m not using QGraphicsView/QGraphicsScene, I draw the cards in QLabels.

wysota
14th February 2014, 09:41
There are no built-in facilities for dragging widgets in Qt. You have to implement everything yourself based on the generic drag and drop mechanism. It would be much easier for you if you used graphics view.