In the Draggable Icons example, the DragWidget class inherits the QFrame class. I changed the code so that the DragWidget class now inherits the QGraphicsView class. Now the program does not work. The background color is not set to gray. I cannot drag the icons around anymore either.
The QGraphicsView class inherits QAbstractScrollArea which inherits QFrame. So what has changed that doesn't allow the icons to be dragged?
Bookmarks