PDA

View Full Version : Customizing a Widget's Tool Tip.



Cutey
24th July 2008, 06:48
Hi Folks,


Is it possible to customize TOOL TIP for a WIDGET(like CheckBox, Spin Box, etc.,)??? I have tried the following way but I got an error saying that 'UI_AnimateTooltip' : is not a member of 'Qt::UIEffect'.

Please any one help me to find out the solution...



#include <QtGui/QApplication>
#include "dlg.h"

int main(int argc, char *argv[])
{
QApplication::setDesktopSettingsAware(false);
QApplication::setEffectEnabled(Qt::UIEffect::UI_An imateTooltip);
QApplication a(argc, argv);
dlg w;
w.show();
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
return a.exec();
}


If I succeed in the above code it will affect whole the application but I need to customize a few TOOL TIP informations..!!!!! Please give me any clue..!!!!!!!!

Thanks a lot in advance.........

aamer4yu
24th July 2008, 08:08
Line 7 should be -
QApplication::setEffectEnabled(Qt::UI_AnimateToolt ip);

:)

By the way what customizations are u looking for in the tooltip ? I was also facing similar (http://www.qtcentre.org/forum/f-qt-programming-2/t-extended-tooltip-14991.html) problem ....