Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    Language Bindings
    pyqt4 graphics context menu
    1
    1
    669
    Loading More Posts
    • 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
      ppuiseux last edited by ppuiseux

      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 Reply Quote 0
      • First post
        Last post