PDA

View Full Version : Regarding tooltip



ashishsaryar
23rd December 2011, 08:40
Hi All,

I am using Qt 3.3 and I have to add two functionality text wrap and tool tip on button . But I am not getting any function for that.

Is there any function for this or plesae tell me how we can achieve this thing in Qt 3.3.

Thanks in Advance
Ashish Kumar Saryar

Lykurg
24th December 2011, 08:32
For the tool tip see QToolTip::add() and maybe QWhatsThis, depending what you want.
For the text wrap, subclass QPushButton and do the drawing in the paintEvent yourself. You also need to alter the widgets size hint...
Consider to upgrade from 3.3...