You can construct your own custom tooltips by using a widget with Qt::ToolTip window flag set. See Tooltips Example to get to know how and when to trigger custom tooltips. You may adapt some ideas from QToolTip implementation (src/gui/widgets/qtooltip.cpp if I remember right) as well.