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
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:
Qt Code:
{ // compare event position and canvas item positions // and set tooltip text accordingly } }To copy to clipboard, switch view to plain text mode
jnana (2nd March 2006), sunil.thaha (7th March 2006)
Thanks JPN,
It is working fine.
Bookmarks