Hi,<br>Thanks for the help, I guess I forgot to check that part and did not realize it was only python related. My first problem is solved but I still cannot select any items on the scene. I added
QGraphicsView::setInteractive(True) but it did not change anything.<br><br>2.The other problem is when I try to select an item with a left mouse
click. I did not implement the mousePressEvent() inside the item class
but I implemented the one in scene class. I can get the position of mouse
by scenePos() easily and use it to add items. After adding an item, if I
use itemAt() function with a new click on the item and scenePos(), it
always returns None. I set the flags of the item all true (selectable, movable). <br>
<br>Thanks again,<br><br>AYSUN<br><br><div class="gmail_quote">
On Tue, May 13, 2008 at 3:28 PM, Hans Meine <<a href="mailto:meine@informatik.uni-hamburg.de" target="_blank">meine@informatik.uni-hamburg.de</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Dienstag 13 Mai 2008, Aysun Bascetincelik wrote:<br>
</div><div>> Sorry, I was not sure about attaching files. Here are the files.<br>
<br>
</div>Your mistake is simply that you have made "pointToDraw" a class variable, not<br>
an object/instance one (use self.pointToDraw, not MyPoint.pointToDraw). This<br>
is not [Py]Qt related.<br>
<div><div></div><div><br>
Ciao, / / .o.<br>
/--/ ..o<br>
/ / ANS ooo<br>
</div></div><br>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br>