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. QGraphicsView MousePressEvent keeps looping
Qt 6.11 is out! See what's new in the release blog

QGraphicsView MousePressEvent keeps looping

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 251 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.
  • H Offline
    H Offline
    hobbyProgrammer
    wrote on last edited by hobbyProgrammer
    #1
    This post is deleted!
    jsulmJ 1 Reply Last reply
    0
    • H hobbyProgrammer

      This post is deleted!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @hobbyProgrammer said in QGraphicsView MousePressEvent keeps looping:

      QGraphicsView::mousePressEvent(event);

      Why do you call this in a loop?
      Also, you should call accept/ignore on the event: https://doc.qt.io/qt-5/qevent.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply
      0
      • jsulmJ jsulm

        @hobbyProgrammer said in QGraphicsView MousePressEvent keeps looping:

        QGraphicsView::mousePressEvent(event);

        Why do you call this in a loop?
        Also, you should call accept/ignore on the event: https://doc.qt.io/qt-5/qevent.html

        H Offline
        H Offline
        hobbyProgrammer
        wrote on last edited by hobbyProgrammer
        #3
        This post is deleted!
        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