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. Another Mouse Event in QGraphicsObject question
Forum Updated to NodeBB v4.3 + New Features

Another Mouse Event in QGraphicsObject question

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 782 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.
  • A Offline
    A Offline
    AnnaB
    wrote on last edited by
    #1

    I've seen this asked many times on these forums, but the solutions presented do not solve my problem, and I do not know why.

    I have derived a class from QGraphicsObject and I can successfully receive sceneEvents. I would like to know when the user is moving the mouse (similar to hover) with a mouse button held. I expected mouseMoveEvent to capture this, but it is never entered. My class accepts hover events and the QGraphicsView sets mouse tracking. I had it working before I introduced an event filter (which I have now commented out) into the QMainWindow that contains the viewport,

    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AnnaB
      wrote on last edited by
      #2

      Well, I cannot find a solution as to why the mouse event isn't propagating or triggering. I've implemented an eventFilter, and can get what I need that way.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Can you show your item's implementation ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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