What functionality are u trying to achieve with your application ?
I am still not able to understand why you need drag drop handling.![]()
What functionality are u trying to achieve with your application ?
I am still not able to understand why you need drag drop handling.![]()
you already asked that question and I answered!What functionality are u trying to achieve with your application ?
I don't need drag/drop handling but I need to tell when the mouse is moving and the button is down, and for some reason the mousemove event isn't being called when the button is down.
Anyway, I've got the mouse events I want now with the drag events.
Thanks for trying to help.
That is fine. But I wanted to know are u trying to move graphics Item ? or are u trying to change color / monitor cursor position of hover over graphics item ?you already asked that question and I answered!
I don't need drag/drop handling but I need to tell when the mouse is moving and the button is down, and for some reason the mousemove event isn't being called when the button is down.
Anyway, I've got the mouse events I want now with the drag events.
Thanks for trying to help.
Reply With Quote
You had mentioned you are trying paint like program. And I also mentioned graphics view isnt that necessary for that.
And without code of what you have tried, it is very difficult to say where you are going wrong.
I was after zoom with scrollbars and separate layers for the background image and foreground annotations. So that's what I have now with the scene/view stack.That is fine. But I wanted to know are u trying to move graphics Item ? or are u trying to change color / monitor cursor position of hover over graphics item ?
Later I may have to add the ability to adjust control points of an annotation, but hopefully not.
I've implemented a similar widget in FLTK and it was a pain. Qt is fortunate to have higher level widgets like the graphic scene/view.
Richard
Hi to all!
I have some widgets embedded into QGraphicsView via QGraphicsProxies. Now, how do I prevent those widgets from being dragged arround view. They must not be moved. Method setDragMode does not work. Please help!
Qt 5.3 Opensource & Creator 3.1.2
Bookmarks