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. Double-clicking on a QGraphicsItem messing up with Panning feature of the QGraphicsView. Please help.
Forum Updated to NodeBB v4.3 + New Features

Double-clicking on a QGraphicsItem messing up with Panning feature of the QGraphicsView. Please help.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.0k 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
    amban
    wrote on last edited by
    #1

    HI,
    I have followed this example http://www.qtcentre.org/wiki/index.php?title=QGraphicsView:_Smooth_Panning_and_Zooming to apply zooming and panning features to my QGraphicsView. My view comprises of a QGraphicsScene which comprises of CLICKABLE QGraphicsEllipseItem. Now the implementation of panning is based on single clicking. When i double-click my QGraphicsEllipseItem, it should display the name of the object clicked. Ever since i have used above code instead of QGraphicsView i get an error - the first time the correct ellipse name is displayed, however, clicking on any other ellipse object also gives the same name!!!

    Tweaking my code i realize the issue is because of the mouse release event. Did anyone face such situation before ? I do not know how to implement this successfully. Please help.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stevenceuppens
      wrote on last edited by
      #2

      can you put your code somewhere to download?

      Steven CEUPPENS
      Developer / Architect
      Mobile: +32 479 65 93 10

      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