I have a QGraphicsTextItem
subclass that accepts mouse events (i.e. implements wheelEvent()
method.
How can I check on which position within the text the wheel event happened? I would like to get the letter that the mouse pointer pointed at when the wheel event happened.
BTW: one possible solution is to create a series of QGraphicsTextItem
objects -- one for every letter. This way each letter can accept it's own events, but I loose all the kerning and other typesetting sophistication.