Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. PyQt4 graphics : contextMenu does not appear if graphics item is not movable...
QtWS25 Last Chance

PyQt4 graphics : contextMenu does not appear if graphics item is not movable...

Scheduled Pinned Locked Moved Unsolved Language Bindings
pyqt4graphicscontext menu
1 Posts 1 Posters 827 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ppuiseux
    wrote on last edited by ppuiseux
    #1

    In a QGraphicsScene, i first select some graphics item, say myitem, then I right-click on it the

    scene().contextMenuEvent(self,event)
    

    is called, and show the context menu i build there. All is right.

    I execute this instruction :

    myitem.setFlag(ItemIsMovable, False)
    

    Now i right-click on (selected) myitem and context menu does not appear anymore...
    Maybe I should show a complete program having this behaviour ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved