You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, December 11th 2010, 4:04pm

GraphViewWidget and mousePressEvent

Hi,

I have a problem with events on GraphViewWidget .

I need to catch mousePressEvent (Left) on GraphViewWidget and (Right) on QGraphicsItem.
When I implement

void mousePressEvent(QMouseEvent *event);

in GraphViewWidget it catches all events, how can I pass this event to QGraphicsItem?

Another problem is how can I connect right mouse button to QScrolArea?