Results 1 to 2 of 2

Thread: about the contextMenuEvent in graphics view framework

  1. #1

    Question about the contextMenuEvent in graphics view framework

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: about the contextMenuEvent in graphics view framework

    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.
    J-P Nurmi

Similar Threads

  1. Qt Coordinate System and the Graphics View Framework
    By djurodrljaca in forum Qt Programming
    Replies: 14
    Last Post: 17th February 2012, 12:19
  2. Issues with the Graphics View Framework
    By lni in forum Qt Programming
    Replies: 8
    Last Post: 26th April 2009, 15:13
  3. Graphics View Panning ,zooming
    By linuxdev in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2008, 08:17
  4. Replies: 4
    Last Post: 5th August 2008, 20:55
  5. Graphics view display problem.
    By kiranraj in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2007, 08:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.