Board index » kylix » QTrayIcon: No tooltip when form hidden

QTrayIcon: No tooltip when form hidden


2004-12-23 06:20:35 PM
kylix2
Hi.
I have an issue with QTrayIcon where I don't get a tool tip unless the
form with the control is displayed and has focus. Does anybody have any
suggestions on how to get my tray icon to show tips even when the form
is hidden?
Cheers,
trane
 
 

Re:QTrayIcon: No tooltip when form hidden

Trane Francks wrote:
Quote
Hi.

I have an issue with QTrayIcon where I don't get a tool tip unless the
form with the control is displayed and has focus. Does anybody have any
suggestions on how to get my tray icon to show tips even when the form
is hidden?
This is a limitation of Qt 2.
Qt2:
if ( !qApp || !qApp->activeWindow() || // <<===
!obj || !obj->isWidgetType() || // isWidgetType() catches most stuff
!e ||
e->type() == QEvent::Paint ||
e->type() == QEvent::Timer ||
e->type() == QEvent::SockAct ||
!tips )
return FALSE;
Qt3:
if ( !qApp // <<===
|| !obj || !obj->isWidgetType() // isWidgetType() catches most stuff
|| e->type() == QEvent::Paint
|| e->type() == QEvent::Timer
|| e->type() == QEvent::SockAct
|| !tips )
return FALSE;
--
Regards,
Andreas Hausladen
(www.kylix-patch.de.vu - unofficial Kylix 3 patches)
(andy.jgknet.de/blog)
 

Re:QTrayIcon: No tooltip when form hidden

On 12/23/2004 07:59 PM +0900, Andreas Hausladen wrote:
Quote
This is a limitation of Qt 2.
Many thanks for the insight, Andreas. And thank you for the component
and patches that make working with Kylix all the nicer.
trane
--
/////////////////////////////////////////////////////////
// Trane Francks XXXX@XXXXX.COM Tokyo, Japan
// Practice random kindness and senseless acts of beauty.
 

{smallsort}