Hi Every Body ,
I want to add tooltip to canvas items. I know how to add tooltips to widget objects. As canvas items are not derived from QWidget, therefore not able to add to it.
Needs all of your help.
Regard & Thanks
Printable View
Hi Every Body ,
I want to add tooltip to canvas items. I know how to add tooltips to widget objects. As canvas items are not derived from QWidget, therefore not able to add to it.
Needs all of your help.
Regard & Thanks
Inherit Q3CanvasView and override:
bool QWidget::event ( QEvent * e ) [virtual protected]
You can show a dynamic tooltip like this:
Code:
{ // compare event position and canvas item positions // and set tooltip text accordingly } }
Thanks JPN,
It is working fine.