Hi,
Im having a problem utilizing the toolTip of the GraphicsItem for my 
PolygonItems I have in a scene. Imagine a few such PolygonItems in one 
scene. Now when i hover over one of them, I setup his toolTip, and when 
leaving I set the toolTip to a null string, which according to doc, 
should shut the toolTip off. Unfortunately it wont disappear immidietly* 
*after leaving, and when I hover over the next PolygonItem the baloon 
form the previous one stays where it was and no baloon shows for the 
current PolygonItem. It eventually show after some time and moving the 
mouse inside this PolygonItem.

I need a baloon tooltip to show and disappear faster. Mayby even have 
some delay for showing. How do I deal with it?

        polyItem = new QGraphicsPolygonItem(poly, this.parent, this.scene){
            public void hoverEnterEvent(QGraphicsSceneHoverEvent event){
                this.setToolTip("lalala");

                super.hoverEnterEvent(event);
            }
          
            public void hoverLeaveEvent(QGraphicsSceneHoverEvent event){
                this.setToolTip("");

                super.hoverLeaveEvent(event);
            }
        };


I also tried the straightforeward way:

polyItem = new QGraphicsPolygonItem(poly, this.parent, this.scene);
polyItem.setToolTip("System trayIcon example");

but again, it doesn't change fast enough..

Dawid


_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to