View Full Version : about the contextMenuEvent in graphics view framework
bingoking
21st April 2009, 04:01
I have reimplemented the contextMenuEvent function both in QGraphicsItem、QGraphicsScene and QGraphicsView,now when i click the right button in the view,which context menu is shown?how does the graphics view framework deliver events in item,scene and view?
jpn
21st April 2009, 07:04
QGraphicsView is a QWidget and receives QContextMenuEvent. QGraphicsView converts that to a QGraphicsSceneContextMenuEvent and sends it to the scene. The scene is responsible for sending the event to all items at event position until one item accepts the event.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.