[Qt-interest] QToolTip delay

Karsten Heimrich karsten.heimrich at nokia.com
Fri Jul 3 15:20:33 CEST 2009


Hi Serge,

> In windows application it is possible to reduce this interval for entire 
> application. For example in Delphi it is property 
> TApplication.HintPause. Is there something in QT, so that it would be 
> cross-platform?
> 
> Chandru... wrote:
>> show the tooltip by your own ...
>> QTimer *timer = new QTimer();
>> connect(timer , SIGNAL(timeout()), this, SLOT(timerOut()));
>> timer->start(1000);
>>
>> void Widgets::timerOut()
>> {
>>  QPoint value2 ;
>>  QString test = "sgkadfsdfsd ..";
>>  QToolTip::showText(value2, test);   or   QToolTip::hideText();
>> }
>> On 7/3/09, *Serge* <mb0 at km.ru <mailto:mb0 at km.ru>> wrote:
>>
>>     Hi,
>>
>>     is it possible to reduce delay, after which ToolTip is displayed?
>>
>>     when i move and stop cursor over widget with ToolTip, i need to wait
>>     about 1 sec until tool tip will appear. Is it possible to reduce this
>>     time interval?
>>

you would probably overwrite your YourWidget::event(...) 
function, look for a QHelpEvent of type QEvent::ToolTip - handle 
the delay and then show the tip.


See also:
http://doc.qtsoftware.com/4.5/widgets-tooltips.html


Regards,
-- 
Karsten Heimrich - karsten.heimrich (AT) nokia.com
Software Engineer - Nokia, Qt Software
Rudower Chaussee 13, 12489 Berlin, Germany



More information about the Qt-interest-old mailing list