<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Hi list<br><br>I have a mainwindow with a dockwidget which holds a QListView displaying a list of different unique names. Also in the window I have a QGraphicsview. I now want to be able to drag one of the names displayed in the list onto the view, and then be displayed as a QGraphicsItem, which is designed as a rectangle. So the question is how do I get the graphicsview to accept the graphicsitem and then display it?<br><br>I have implemented this dropevent in the graphicsview:<br><br> def dropEvent(self, event):<br> node = item.Item(event.pos(), self.scene)<br> node.show()<br> event.accept()<br><br>it is being called and calls the graphicsitem, but it is not shown on screen.<br><br>What am I doing
wrong?<br><br>Mads<br><div><br></div></div><br>
</body></html>