Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGraphicsItem ignores mouse release event when ItemIsMovable is false.
Forum Updated to NodeBB v4.3 + New Features

QGraphicsItem ignores mouse release event when ItemIsMovable is false.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qgraphicsitemflagmouseeventqgraphicsviewqgraphicsscene
5 Posts 2 Posters 931 Views 1 Watching
  • 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.
  • F Offline
    F Offline
    Forfunckle
    wrote on last edited by
    #1

    Hello, is there any way to get mouseReleaseEvent() to work when ItemIsMovable flag is set to false? The event is completely ignored unless I change ItemIsMovable to true again.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      And you have QGraphicsItem::ItemIsSelectable on ?

      F 1 Reply Last reply
      1
      • mrjjM mrjj

        Hi
        And you have QGraphicsItem::ItemIsSelectable on ?

        F Offline
        F Offline
        Forfunckle
        wrote on last edited by
        #3

        @mrjj No, it is false. (even though, when I make ItemIsMovable true, I also make ItemIsSelected true)

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi
          Ok try with that on and see if it then get the mouse events.

          F 1 Reply Last reply
          1
          • mrjjM mrjj

            Hi
            Ok try with that on and see if it then get the mouse events.

            F Offline
            F Offline
            Forfunckle
            wrote on last edited by
            #5

            @mrjj Yes, it worked. Thank you!

            1 Reply Last reply
            1

            • Login

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