All pastes #465118 Raw Edit

Tick_Data Class

public text v1 · immutable
#465118 ·published 2007-04-29 22:32 UTC
rendered paste body
// this method is inside a class that inherits from QGraphicsItem. it prints out the coordinates when i click on the items, but the items themselves don't move anymore, so i guess the basemethod is overwritten. 

void QGraphicsItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
 {
 	
 	 QPointF test = event->lastScenePos();
     std::cout << "x: " << test.x() << " ";
     std::cout << "y: " << test.y() << " ";
     std::cout << "index: " << index << std::endl;
     
 }