PDA

View Full Version : QGraphicsItems & ToolTip behaviour



fruzzo
2nd September 2011, 15:28
Hi,
I've a question for you...I've created this classes:

class AItem: public QGraphicsItem {}

class BItem: public AItem {}

class CItem: public QGraphicsItem {}

...and I've setted an instace of CItem like parent of any instance of BItem and for anyone of this object I've setted a specific tooltip.
Now...when I place the mouse over a BItem It's showed the CItem tooltip...why this trange behaviour?

NB If I create an AItem object like child of CItem (setting its tooltip) than It's showed the AItem tooltip.