[Interest] QGraphicsWidget and custom QToolTip

Petric Frank pfrank at gmx.de
Tue Jan 21 20:25:02 CET 2014


Hello,

i want to extend the QTooltip class to embed a dynamically created picture 
also. It is placed in a QPixmap instance (or alike) but not on disk.

The idea is to derive QTootip (handling this picture) and pass it as tool tip 
in a QGraphicsWidget (or a derivation of it).

But there is no public signature which allows me to replace the embedded 
QToolTip instance of QGraphicsWigdet. Only texts (w/ reduced HTML) can be 
passed to the setTooltip method.

The only location i found, where it will be possible, is qgraphicswidget_p.h 
where the method setExtras could be used.

Do i really have to duplicate the QGraphicsWidget class tree to make this 
happen ?
Or is it - in this case - allowed to include the private header ?

Any ideas ?

regards
  Petric



More information about the Interest mailing list