@@jiejenn I have been browsing for almost an hour and found this. Thanks for sharing. Instead of updating position by using that algorithm in mouseMoveEvent. Just do: self.setFlag(self.ItemIsMovable, True) in def __init__() and add return super().mouseMoveEvent(event) at the bottom of mouseMoveEvent function. It works. Thanks
Thank you very much for this clear video ! I just didn't understand where the app came from in the point class method so I replaced it with self.parent where parent is a Qwidget holding the QGraphicsScene. Thank you again !
Thank you very much very interesting tricks . But If I want to "create multiple items" and you can select and move more than one item at a time ? I can't do it with this method ?
i have some question. first, does the coordinate is the coordinate of the cursor and not the center coordinate of the object?. second, what if the object is triangle and we need to get heading of the object by the value of 0 - 360 degree?
Was struggling quite a lot for dragging QGraphicsTextItem. This is exactly what I need and it worked. Thanks.
Thank you for this tutorial. It will save me a lot of time 🙂
This is exactlty what I've been struggling to do! Thank you very much for sharing, greetings from Chile!
Glad my video helped.
@@jiejenn I have been browsing for almost an hour and found this. Thanks for sharing.
Instead of updating position by using that algorithm in mouseMoveEvent.
Just do:
self.setFlag(self.ItemIsMovable, True) in def __init__()
and add
return super().mouseMoveEvent(event) at the bottom of mouseMoveEvent function. It works.
Thanks
I was looking for a solution like that for my dissertation application
Thanks a lot!!
Thank you very much for this clear video ! I just didn't understand where the app came from in the point class method so I replaced it with self.parent where parent is a Qwidget holding the QGraphicsScene. Thank you again !
Exactly what i was looking for ....thanks from India
minimal working example, great!
thank you this is very helpful!
Thank you very much very interesting tricks . But If I want to "create multiple items" and you can select and move more than one item at a time ? I can't do it with this method ?
This is fantastic
How can i do this in 3d though?
Nice video!, I am making a program which should do the same but with an image, is it possible?
Thanks for the tutorial, I have a question, how can I draw a set of points given in tuples for exaple, like points belonging to a function like y=x^2?
how can I move more than one object?
i have some question. first, does the coordinate is the coordinate of the cursor and not the center coordinate of the object?. second, what if the object is triangle and we need to get heading of the object by the value of 0 - 360 degree?
how can i get mouse position on image that i load by pyqt5?
do I need to download code for the from PyQt5.QtWidgets to work but my computer just says it doesn't exist?
Have you installed PyQt5 Python package first?